Switch
Toggle a setting on or off.
Usage
Use a switch for settings that take effect immediately. Set data-om-motion="fold" on the switch or an ancestor for the optional Fold thumb and press feedback.
Accessibility
Keep the accessible name stable as the value changes. Space toggles the native control.
| Property | Type | Default |
|---|---|---|
| checked | boolean | None |
<label>
<Switch defaultChecked /> Capture interactions
</label>