Switch
Inputs · upstream shadcn/ui, Vercel dashboard 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#000000--primaryfill#EDEDED--destructiveerror#E2162A--inputfill#2E2E2E--ringfocus ring#47A8FFShape and type: --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity