Toggle
Actions · upstream shadcn/ui, Apple theme
A two-state button that can be either on or off.
Variants
Sizes
StatesHover, press and focus: try them here.
With icon
import { Toggle } from "@/components/ui/toggle"
<Toggle>…</Toggle>Tokens it uses
--inputborder#D2D2D7--foregroundtext#1D1D1F--mutedfill#F5F5F7--destructiveerror#E30000--ringfocus ring#0071E3Shape and type: --ds-radius-button --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity