Grids

Layout & Structure
stable

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.

fluid
boolean
false
Removes the max-width constraint so the container expands to full viewport width.
fullscreen
boolean
false
Forces the container to fill 100vw × 100vh.
tag
string
'div'
HTML element rendered at the root of Container / Row / Col / Spacer.
height
string | number
Explicit height override (Container / Col). Accepts CSS length or number → px.
width
string | number
Explicit width override.
gutters
string | 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).
sm
TCols
Column span at the sm breakpoint (≥ 600 px).
md
TCols
Column span at the md breakpoint (≥ 960 px).
lg
TCols
Column span at the lg breakpoint (≥ 1280 px).
xl
TCols
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.
order
number
CSS order for the Col inside the Row.
border
boolean | string
false
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

vue

Responsive columns

vue

Spacer to push items apart

vue

Écosystème

Famille

Composants du même dossier qui partagent les conventions et se composent souvent ensemble.