Oddmash UI
All components

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.

PropertyTypeDefault
checkedbooleanNone
<label>
  <Switch defaultChecked /> Capture interactions
</label>

Interactive documentation