layout — wyrd.component.stack

Stack

Layout primitive that arranges child content along one flex axis 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.
vertical state: default
01Draft02In review03Ready
Usage
import { WyrdStack } from "@wyrd-company/react";

<WyrdStack direction="column" gap={2} padding={1}>
  Draft | In review | Ready
</WyrdStack>
horizontal state: default
01Contract02Projection03Package
Usage
import { WyrdStack } from "@wyrd-company/react";

<WyrdStack direction="row" gap={2} padding={1}>
  Contract | Projection | Package
</WyrdStack>
02

Properties

NameTypeDefaultSummary
direction row | column column Main-axis direction for child layout.
gap integer 0 Space between children as an index into the normative Layout DSL spacing scale.
padding integer 0 Uniform inner padding as an index into the normative Layout DSL spacing scale.
03

Slots & events

SlotCardinalityAcceptsSummary
content one-or-many component, content Child layout nodes arranged by the stack.
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. Stack lowers to the Layout DSL FlexContainer primitive during Puck-to-SDUI normalisation.

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