๐Ÿค– Prime Utilities

La documentaciรณn de Prime es muy complicada para navegar y encontrar rapidamente las referencias, es por eso que acรก se listan las clases mas relevantes para utilizar en este proyecto

General Classes

classDescription
p-componentApplies component theming such as font-family and font-size to an element.
p-disabledApplies an opacity to display as disabled.
p-sr-onlyElement becomes visually hidden however accessibility is still available.
p-resetResets the browsers defaults.
p-linkRenders a button as a link.
p-errorIndicates an error text.
p-invalidStyles an form element as invalid.
p-text-secondaryApplies the text color of the theme with the secondary priority.

Spacing Classes

The spacing classes use the p-{property}{position}-{value} syntax whereas for responsive values p-{property}{position}-{breakpoint}-{value} format is used.

class Description
p-{property}{position}-{value} Spacing Config.
{property} m : margin , p: padding
{position} t: top , b: bottom , l: left , r: right , x: left and right , y: top and bottom , blank: all sides
{value} 0: 0, 1: .25rem, 2: .5rem, 3: 1rem, 4: 1.5rem, 5: 2rem, 6: 3rem, auto: auto margin
{breakpoint} sm: small screens , md: medium screens , lg: large screens , xl: larger screens

Display Classes

classDescriptionvalues
p-d-{value}Display[none, inline, inline-block, block, flex, inline-flex]

Grid (12 units)

classDescriptionvalues
p-gridDisplay Grid
p-colColumn flex 1
p-col-{number}Column with span[1, 2, 3,4,5,6]
p-col-fixedColumn with fixed width
p-offset-{number}Column offseted[1, 2, 3,4,5,6]
p-nogutterNo gat between

More info here PrimeVue Grid Documentation ๐Ÿคฎ

Flex

classDescriptionvalues
p-flex-{direction}Direction[row, row-reverse, column, column-reverse]
p-order-{value}Order[0, 1, 2, 3 ,4, 5, 6]
p-flex-{value}Wrap[nowrap, wrap, wrap-reverse]
p-jc-{value}Justify Content[start, end, center, between, around, evenly]
p-ai-{value}Align Items[stretch, start, end, center, baseline]
p-as-{value}Align Self[stretch, start, end, center, baseline]
p-ac-{value}Align Content[start, end, center, around, stretch, between]

Text

classDescriptionvalues
p-text-{value}Alignmentleft, center, right, justify
p-text-{value}Wrapwrap, nowrap, truncate
p-text-{value}Transformlowercase, uppercase, capitalize

Responsive

The display classes use the p-d-{value} format and p-d-{breakpoint}-{value} format for responsive design.

  • sm small screens e.g. phones
  • md medium screens e.g. tablets
  • lg large screens e.g. notebooks
  • xl larger screens .e.g monitors