Switch
Inputs · upstream shadcn/ui, Stripe 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#533AFD--destructiveerror#DF1B41--inputfill#D4DEEA--ringfocus ring#5451FBShape and type: --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity