Switch
Inputs · upstream shadcn/ui, GitHub 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#1F883D--destructiveerror#CF222E--inputfill#D1D9E0--ringfocus ring#0969DAShape and type: --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity