Grids
Responsive 12-column grid system based on CSS Grid. Compose Container, Row, Col and Spacer to lay out any page or component.
API
Props
Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.
- fluidbooleanfalse
- Removes the max-width constraint so the container expands to full viewport width.
- fullscreenbooleanfalse
- Forces the container to fill 100vw × 100vh.
- tagstring'div'
- HTML element rendered at the root of Container / Row / Col / Spacer.
- heightstring | number
- Explicit height override (Container / Col). Accepts CSS length or number → px.
- widthstring | number
- Explicit width override.
- guttersstring | number
- Gap between Col children. Accepts a CSS length, a number (px) or a token name.
- direction'row' | 'row-reverse' | 'column' | 'column-reverse''row'
- Flex direction of the Row.
- align'start' | 'center' | 'end' | 'stretch' | 'baseline'
- Aligns Col children along the cross axis (Row).
- justify'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly'
- Distributes Col children along the main axis (Row).
- cols'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'|'10'|'11'|'12'|'auto'
- Number of columns to span at all breakpoints (default / xs).
- smTCols
- Column span at the sm breakpoint (≥ 600 px).
- mdTCols
- Column span at the md breakpoint (≥ 960 px).
- lgTCols
- Column span at the lg breakpoint (≥ 1280 px).
- xlTCols
- Column span at the xl breakpoint (≥ 1920 px).
- offset'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'|'10'|'11'
- Offset in grid columns from the left at the default breakpoint.
- ordernumber
- CSS order for the Col inside the Row.
- borderboolean | stringfalse
- Applies a border to the element.
API
Slots
Emplacements de contenu exposés par ce composant.
- #default
- Content placed inside the Container / Row / Col / Spacer.
Interactif
Playground
Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.
Rendu de l’aperçu en cours…
Usage
Exemples
Extraits de code prêts à coller dans vos templates.
Basic 12-col grid
Responsive columns
Spacer to push items apart
Écosystème
Famille
Composants du même dossier qui partagent les conventions et se composent souvent ensemble.
Container
Page-level structural wrapper with optional fluid / fullscreen modes.
Row
Horizontal row that wraps Col children with configurable gutters and direction.
Col
Responsive column that spans 1–12 grid tracks with per-breakpoint overrides.
Spacer
Invisible flex-grow element that fills remaining space between cols.