data-display — wyrd.component.card

Card

Styled surface that frames related content while preserving child semantics.

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.
catalog-health state: default
Catalog health57 component contractsAll projection checks passing
Usage
import { WyrdCard } from "@wyrd-company/react";

<WyrdCard>
  Catalog health | 57 component contracts | All projection checks passing
</WyrdCard>
review-queue state: default
Component readinessReview required4 changes awaiting approval
Usage
import { WyrdCard } from "@wyrd-company/react";

<WyrdCard>
  Component readiness | Review required | 4 changes awaiting approval
</WyrdCard>
02

Anatomy

The specimen is the same published React component and contract example used above. Indexed markers identify only regions the contract can ground; the typed ledger keeps parts, slots, states, and semantic token bindings distinct.

ANATOMY · LIVE SPECIMEN Card catalog-health example · contract-derived
Catalog health57 component contractsAll projection checks passing
  1. Part root Styled surface root.

    The card surface boundary.

  2. Slot content Card body content.

    The example's composed content region.

  3. Token background color.surface

    The semantic background token applied to the card surface.

Parts

  • rootStyled surface root.

Slots

  • contentRequired · one-or-many

States

  • defaultNon-interactive content surface.

Tokens

  • backgroundcolor.surface
  • foregroundcolor.on-surface
  • border-colorcolor.outline
  • border-width1px
  • radiusrounded.md
  • shadowshadow.sm
  • paddingspacing.md

FIG. 1 parts: root TOL. ±0

03

Slots & events

SlotCardinalityAcceptsSummary
content one-or-many component, content Card body content.
04

Tokens

The contract's token bindings. Open the shared contextual sidebar from any example; primary swatches reflect the color you pick there. Error swatches show the active preset's values; editing any knob switches to custom and resets error to TWW · Ink.

BindingToken
background color.surface
foreground color.on-surface
border-color color.outline
border-width 1px
radius rounded.md
shadow shadow.sm
padding spacing.md
05

States

StateSourceSummary
default platform Non-interactive content surface.
06

Accessibility

From the contract's accessibility obligations. Role none

  • Adds no role, name, landmark, or interaction semantics.
  • Preserves the semantics and document order of child content.
  • Verified under: rtl, cvd-deuteranopia, density-compact, text-expansion.
07

SDUI

Status: serializable. Card serializes only its child content; interactive cards are a later component.

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