Grid
A 24-column responsive layout system.
When to use
Use Row and Col when content requires responsive spans, offsets, ordering, gutters, or breakpoint-aware layout.
Examples
API
Row, Col, Grid, and their props are exported from @ceebee/ui/client.
Row
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
align | Vertical alignment | top | middle | bottom | stretch | {[key in 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl']: 'top' | 'middle' | 'bottom' | 'stretch'} | top | object: 4.24.0 |
gutter | Spacing between grids, could be a string CSS units or a object like { xs: 8, sm: 16, md: 24}. Or you can use array to make horizontal and vertical spacing work at the same time [horizontal, vertical] | number | string | object | array | 0 | string: 5.28.0 |
justify | Horizontal arrangement | start | end | center | space-around | space-between | space-evenly | {[key in 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl']: 'start' | 'end' | 'center' | 'space-around' | 'space-between' | 'space-evenly'} | start | object: 4.24.0 |
wrap | Auto wrap line | boolean | true | 4.8.0 |
Col
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
flex | Flex layout style. Number for 'flex: n n auto', string is applied directly (e.g. pure number string 'n' for 'flex: n 1 0') | string | number | - | — |
offset | The number of cells to offset Col from the left | number | 0 | — |
order | Raster order | number | 0 | — |
pull | The number of cells that raster is moved to the left | number | 0 | — |
push | The number of cells that raster is moved to the right | number | 0 | — |
span | Raster number of cells to occupy, 0 corresponds to display: none | number | none | — |
xs | screen < 576px and also default setting, could be a span value or an object containing above props | number | object | - | — |
sm | screen ≥ 576px, could be a span value or an object containing above props | number | object | - | — |
md | screen ≥ 768px, could be a span value or an object containing above props | number | object | - | — |
lg | screen ≥ 992px, could be a span value or an object containing above props | number | object | - | — |
xl | screen ≥ 1200px, could be a span value or an object containing above props | number | object | - | — |
xxl | screen ≥ 1600px, could be a span value or an object containing above props | number | object | - | — |
xxxl | screen ≥ 1920px, could be a span value or an object containing above props | number | object | - | 6.3.0 |
Also available
Ceebee's server-safe Grid and Container remain at @ceebee/ui; use @ceebee/ui/client for the full 24-column contract.