Switch
Inputs · upstream shadcn/ui, Claude 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#FAF9F5--primaryfill#141413--destructiveerror#BF4D43--inputfill#D1CFC5--ringfocus ring#C46849Shape and type: --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity