Toggle

On/off switches for settings or features — immediate, satisfying, and instantly understood. Flipping a toggle applies the change straight away and emits change.

Install

Examples

Off

On

Disabled off

Disabled on

Guidelines

Usage

instant settings like notifications or dark mode. For options that only apply on submit, use a Checkbox.

Do

  • Apply the change immediately when the toggle flips — that’s the contract a switch implies.
  • Label what the toggle controls (“Email notifications”), not its state (“On”).
  • Use it for binary settings with an obvious on/off meaning.

Don’t

  • Don’t use a toggle in a form that only applies on submit — use a Checkbox.
  • Don’t use toggles for mutually exclusive choices — use Radio buttons.
  • Don’t ship a bare toggle without an accessible name.

Accessibility

Properties

Related