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
All props accepted by this component, with their type, default value and 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
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
Responsive columns
Spacer to push items apart
Ecosystem
Family
Components from the same folder that share conventions and often compose together.
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.