HTML-First UI

Switch

A toggle switch component for binary choices

Notes

The switch component provides a visual toggle for binary choices.

  • Use for on/off, enabled/disabled, or true/false choices
  • Can be used with or without a checkbox input
  • Use the checked attribute for the active state