Switch
Inputs · upstream shadcn/ui, Apple theme
A control that allows the user to toggle between checked and not checked.
import { Switch } from "@/components/ui/switch"
<Switch />Tokens it uses
--backgroundfill#FFFFFF--primaryfill#0071E3--destructiveerror#E30000--inputfill#D2D2D7--ringfocus ring#0071E3Shape and type: --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity