Components
Toggle
Projection UI 0.2.0 Alpha
These contracts describe the evolving 0.2.0 Alpha edition. Read Installation to select the matching alpha package or the stable documentation.
Component contract
| Required props | Options and defaults |
|---|---|
| checked, onChange | label, hint, disabled=false, size="md", aria-label, className, style |
Shared application peers: react >=19.0.0, react-dom >=19.0.0.
Your application supplies React 19 and React DOM 19.
Read the full component reference for supported values and interaction behavior.
Examples
Toggle: Default
Loading example…
Open Toggle: Default in the component explorerToggle: Checked
Loading example…
Open Toggle: Checked in the component explorerToggle: Disabled
Loading example…
Open Toggle: Disabled in the component explorerToggle: Small Size
Loading example…
Open Toggle: Small Size in the component explorerToggle: Rounded
Loading example…
Open Toggle: Rounded in the component explorer