layout — wyrd.component.grid

Grid

Layout primitive that arranges child content into a fixed number of equal-width columns using the normative Layout DSL spacing scale.

Install @wyrd-company/react or the Flutter package and use it directly — your DESIGN.md does the styling.

01

Examples

Generated from the contract's examples block. Previews are the published @wyrd-company/react component, themed by the brand's role tokens — flip the site's light/dark toggle and they follow.

Code target Applies to every example on component pages.
two-column state: default
01Foundations02Components03Patterns04Tooling
Usage
import { WyrdGrid } from "@wyrd-company/react";

<WyrdGrid columns={2} gap={2}>
  Foundations | Components | Patterns | Tooling
</WyrdGrid>
three-column-gap state: default
01Design02Build03Validate04Document05Publish06Observe
Usage
import { WyrdGrid } from "@wyrd-company/react";

<WyrdGrid columns={3} gap={4}>
  Design | Build | Validate | Document | Publish | Observe
</WyrdGrid>
twelve-column state: default
011022033044055066077088099101011111212
Usage
import { WyrdGrid } from "@wyrd-company/react";

<WyrdGrid columns={12} gap={1}>
  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
</WyrdGrid>
02

Properties

NameTypeDefaultSummary
columns integer undefined Fixed number of equal-width columns.
gap integer 0 Space between grid cells as an index into the normative Layout DSL spacing scale.
03

Slots & events

SlotCardinalityAcceptsSummary
content one-or-many component, content Child layout nodes arranged row-major into the grid.
04

Accessibility

From the contract's accessibility obligations. Role none

  • Preserves child order and semantics without adding interactive behavior.
  • Verified under: rtl, density-compact, text-expansion, safe-area.
05

SDUI

Status: serializable. Grid lowers to the Layout DSL Grid node during Puck-to-SDUI normalisation.

SerializableMembers
Propertiescolumns, gap
Slotscontent
Events
The Wyrding Way — a contract-first design system. © Wyrd Company