Switch

A common toggle component for binary choices, built with Luxa CSS. Clean, accessible, and ready to use in your projects.


Switches provide intuitive binary control, letting users toggle features on or off.

Best Practices

  • In most cases, switches should have a visual label;
  • If the switch does not have a visible label, an aria-label or aria-labelledby prop must be passed instead to identify the element to assistive technology.

Browse more component recipes or explore the utilities documentation for additional styling options.