Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Primitives
  2. Grid
  3. API and Development

Grid

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Grid wraps Radix UI Themes Grid with design-token backgrounds, borders, elevation, and useSpacing for margin, padding, and gap. It extends BoxProps (minus flex-only props) with columns, rows, areas, flow (GridFlow), align (GridAlign), justify (GridJustify), display (GridDisplay), and useContainerQueries for responsive column templates tied to container width.
Key props
NameTypeDefaultDescription
columnsRadix columns | responsive—Track template or counts.
rowsstring—Row template.
flowGridFlow—Auto-placement flow.
alignGridAlign—Align items.
justifyGridJustify—Justify content.
gapSpacing—Gap spacing scale.
useContainerQueriesbooleanfalseContainer-based breakpoints.
See GridProps in @prepared911/ui for the full surface (background, border, attach*, overflow, zIndex, etc.). The previews below mirror the Grid stories in Storybook (Default, Columns, Rows, GridFlowStory, Alignment, MasonryBasic).
Default
Columns
Rows
Grid flow
Alignment
Masonry layout
Previous
Grid / Usage
Next
Grid / Accessibility
On this page
Key props
Default
Columns
Rows
Grid flow
Alignment
Masonry layout