Primitive
Toggle
A switch. Ink when on, never the accent.
States
Off
On
With description
Replay the same week against your changes.
Small
Disabled
When to use
- Binary settings such as what-if mode or dark mode.
When not to
- For autonomy. Use AutonomyLadder.
- For hard rules. Use HardRule.
Props
| Name | Type | Notes |
|---|---|---|
| checked / onChange / label / description / size / labelSide |
* required
Accessibility invariants
- role=switch with aria-checked; the label is a real label element.
Agent instructions
For anything generating UI from this system
Use only for true on/off settings that are safe to flip casually.