Grid

Columns that fit as many theme-sized items as there is room for, or a fixed count of 2, 3 or 4.

Example

One
Two
Three
tsx
<Grid columns="auto" gap="md">
  <Card>
    <CardContent>One</CardContent>
  </Card>
  <Card>
    <CardContent>Two</CardContent>
  </Card>
  <Card>
    <CardContent>Three</CardContent>
  </Card>
</Grid>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Grid, Card, CardContent } from "@dash/server";

Props

GridProps

Also takes everything LayoutProps does.
Prop
Type
Description
gapSpacing
columns2 | 3 | 4 | "auto" | "sidebar"
PreviousStack
NextCard
On this page