AutoGrid

Media-query-free responsive grid — columns auto-fill based on available space.

Category: layout · WCAG 2.1-AA · layout, grid, responsive

Props

PropTypeDefaultDescription
minstring"16rem"Minimum track width before items wrap to fewer columns
gap1|2|3|4|5|6|8|10|124Spacing token step. Maps to the --cascivo-space-* scale, which intentionally skips 7/9/11 — use 6 or 8.

Design tokens

When to use

When not to use

Examples

Auto-filling grid

Items fill available space and wrap when narrower than 12rem

<AutoGrid min="12rem" gap={4}><div>Card 1</div><div>Card 2</div><div>Card 3</div></AutoGrid>

Related components

← Back to docs