Switch
Inputs · upstream shadcn/ui, Figma 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#000000--destructiveerror#972121--inputfill#D6D6D6--ringfocus ring#000000Shape and type: --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity