Component docs
Loading
import { Grid } from "@pixxl-tools/components";
// In Server Components:
import { Grid } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
columns | number | string | — | — |
gap | PixxlGap | — | Space between children (none, xs, sm, md, lg: 0, 4, 8, 16, 20 px). |
columnsnumber | string
gapPixxlGap
Space between children (none, xs, sm, md, lg: 0, 4, 8, 16, 20 px).
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<Grid columns={2}>...</Grid>