Grid
Grid implements a responsive 12-column layout using CSS flexbox. It supports container/item roles with breakpoint-based column spanning.
Basic Grid
xs=12 sm=6 md=3
xs=12 sm=6 md=3
xs=12 sm=6 md=3
xs=12 sm=6 md=3
Variable Column Spans
xs=8
xs=4
xs=4
xs=8
xs=12
Auto Layout
Use xs="true" to allow items to grow and share available space equally.
auto
xs=6
auto
Spacing
A
B
C
A
B
C
API — Container
| Attribute | Type | Default | Description |
|---|---|---|---|
container | boolean | false | Makes this element a flex container. |
spacing | number | CSS value | 0 | Gap between items. Numbers are multiplied by 8px. |
direction | row | column | row-reverse | column-reverse | row | Flex direction. |
justify | flex-start | flex-end | center | space-between | space-around | flex-start | Main-axis justification. |
align | flex-start | flex-end | center | stretch | baseline | stretch | Cross-axis alignment. |
API — Item
| Attribute | Type | Description |
|---|---|---|
item | boolean | Makes this a grid item (implicit when no container). |
xs | 1–12 | auto | true | Column span at xs breakpoint (≥0px). |
sm | 1–12 | auto | true | Column span at sm breakpoint (≥600px). |
md | 1–12 | auto | true | Column span at md breakpoint (≥900px). |
lg | 1–12 | auto | true | Column span at lg breakpoint (≥1200px). |
xl | 1–12 | auto | true | Column span at xl breakpoint (≥1536px). |