Skip to main content

Toggle

Form ready

Toggle switches enable users to toggle between an on and off state.

Toggle - Usage

A toggle is a user interface element that enables users to switch between two states, such as on/off or enable/disable. It consists of a switch that can be slid or clicked to change its state. They offer a visually clear representation of the current state and allow users to easily toggle between different settings. We typically use toggles in settings, preferences, and other areas where users need to switch between two states quickly and easily.

Anatomy toggle

  1. Label
  2. Required indicator
  3. Toggle
  4. Toggle label
  5. Helper or feedback text

Options

Behavior in context

  • Validation: See validation.
  • Interaction: Clicking on the toggle switch changes its state from on to off or vice versa. The toggle visually reflects the current state.

States

Toggle states

Dos and Don’ts

  • Do use toggles for single features or options that need to be switched quickly and easily
  • Do provide clear labels for toggles to indicate what they control
  • Do use toggles consistently throughout the interface for similar actions or settings
  • Don’t use toggles for complex multi-state options or settings
  • Don’t use toggles for actions that require a confirmation or additional input
  • Don’t use toggles for actions that are irreversible or have serious consequences