Builtin component

Grid

CSS grid with 1-6 columns.

Props

PropTypeDefaultDescription
contentPageNode | PageNode[]—Child nodes
columns1 | 2 | 3 | 4 | 5 | 61Number of grid columns
gap"none" | "sm" | "md" | "lg""md"Spacing between items

Example

Grid({
  columns: 3,
  gap: "md",
  content: [
    Card({ title: "One" }),
    Card({ title: "Two" }),
    Card({ title: "Three" }),
  ],
})