Grid
A 24-column responsive grid system based on flexbox for building page layouts.
When to Use
- To create multi-column layouts with flexible widths
- For responsive designs that adapt to different screen sizes
- To align content with consistent gutters and offsets
Import
Examples
Basic Grid
Columns span across a 24-column grid.
Gutter Spacing
Set horizontal and vertical gutter between columns.
Offset
Move columns to the right using offset.
Flex Alignment
Use justify and align props on Row for alignment.
Responsive Columns
Columns adapt to different breakpoints using responsive props.
API
Row Props
gutter—number | [number, number] | ResponsiveObject— Horizontal (or [horizontal, vertical]) spacing between columns (default:0)align—"top" | "middle" | "bottom" | "stretch"— Vertical alignment of columns (default:"top")justify—"start" | "end" | "center" | "space-around" | "space-between" | "space-evenly"— Horizontal distribution (default:"start")wrap—boolean— Whether columns wrap to next line (default:true)className—string— Custom CSS classstyle—CSSProperties— Inline styles
Col Props
span—number— Number of cells to occupy (0-24)offset—number— Number of cells to skip from the leftpush—number— Number of cells to push rightpull—number— Number of cells to pull leftorder—number— Flex orderflex—string | number— Flex grow/shrink/basis shorthandxs—number | object— Screen < 576pxsm—number | object— Screen >= 576pxmd—number | object— Screen >= 768pxlg—number | object— Screen >= 992pxxl—number | object— Screen >= 1200pxxxl—number | object— Screen >= 1600px