Switch
Inputs · upstream shadcn/ui, Linear 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#08090A--primaryfill#E5E5E6--destructiveerror#EB5757--inputfill#34343A--ringfocus ring#5E69D1Shape and type: --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity