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

All props accepted by this component, with their type, default value and 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

Content slots exposed by this component.

#default
Content placed inside the Container / Row / Col / Spacer.

Interactive

Playground

Edit props live and see the component update in real time. The generated code snippet updates as you change values.

Rendering the live preview…

Usage

Examples

Ready-to-paste code snippets for your templates.

Basic 12-col grid

vue

Responsive columns

vue

Spacer to push items apart

vue

Ecosystem

Family

Components from the same folder that share conventions and often compose together.