form-field — wyrd.component.checkbox

Checkbox

Boolean choice control with required, disabled, checked, indeterminate, and one canonical checked-change event.

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.
unchecked state: unchecked
Usage
import { WyrdCheckbox } from "@wyrd-company/react";

<WyrdCheckbox isChecked={false}>
  Accept terms
</WyrdCheckbox>

// events: onCheckedChange
checked state: checked
Usage
import { WyrdCheckbox } from "@wyrd-company/react";

<WyrdCheckbox isChecked>
  Email me updates
</WyrdCheckbox>

// events: onCheckedChange
indeterminate state: indeterminate
Usage
import { WyrdCheckbox } from "@wyrd-company/react";

<WyrdCheckbox isIndeterminate>
  Select all permissions
</WyrdCheckbox>

// events: onCheckedChange
02

Properties

NameTypeDefaultSummary
is-checked boolean false Checked state of the boolean choice.
is-indeterminate boolean false Mixed state used when a parent choice represents both checked and unchecked descendants.
is-disabled boolean false Prevents editing and exposes disabled platform semantics.
is-required boolean false Marks the choice as required when it participates in a form.
03

Slots & events

SlotCardinalityAcceptsSummary
label exactly-one text, node Visible label and accessible-name source.
EventPayloadSummary
checked-change checked, indeterminate, action Canonical checked-state change event carrying the next checked and indeterminate states.
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
root.gap spacing.sm
control.size spacing.md
control.background color.surface
control.background-checked color.primary
control.foreground-checked color.on-primary
control.border-color color.outline
control.border-color-focus color.primary
control.border-color-disabled color.disabled
control.border-width 1px
control.radius rounded.sm
label.color color.on-surface
label.text typography.body-md
05

States

StateSourceSummary
unchecked property Enabled state when is-checked is false.
checked property Enabled state when is-checked is true.
indeterminate property Mixed state derived from is-indeterminate.
focus-visible platform Keyboard-visible focus state.
disabled property Disabled state derived from is-disabled.
required property Required state derived from is-required.
06

Accessibility

From the contract's accessibility obligations. Role checkbox; Label slot provides the accessible name.

  • Space toggles the checkbox when enabled.
  • Tab moves focus into and out of the checkbox in document order.
  • Checked, indeterminate, required, and disabled states are exposed through platform semantics.
  • Indeterminate is exposed as mixed on platforms with mixed checkbox semantics.
  • Verified under: rtl, reduced-motion, cvd-deuteranopia, density-compact, text-expansion.
07

SDUI

Status: serializable. Checked-change serializes to a named binding/action channel.

SerializableMembers
Propertiesis-checked, is-indeterminate, is-disabled, is-required
Slotslabel
Eventschecked-change
The Wyrding Way — a contract-first design system. © Wyrd Company