SimpleGrid
Equal-width column grid built on CSS Grid.
cols and gap accept a single value or a per-breakpoint responsive object like
{ base: 1, md: 3 }; set responsiveMode to "container" to resolve breakpoints
against the nearest container instead of the viewport.
Usage
Best practices
SimpleGridlays out equal-width columns - setcols(responsive, e.g.{ base: 1, md: 3 }); when you need column spans or ordering, step up toGrid.Set
xGap/yGapfor different column and row spacing; each overrides thegapshorthand on its own axis.asandrenderare mutually exclusive (renderwins, dev-warned);asdraws from the closed layout vocabulary, soas="button"is a type error (useButton).Use
asto change the element (a tag); userenderonly to swap in a component (e.g. a router Link). Neverrender={<Box as=…/>}- passasdirectly.
Props
Also exports
- interface
SimpleGridProps