Skip to main content

Toggle

A two-state button that can be on or off.

Import

Props

State

The toggle exposes the following state:
  • pressed: boolean - Whether the toggle is currently pressed
  • disabled: boolean - Whether the toggle should ignore user interaction