Docs
Switch
Switch
A control that allows the user to toggle between checked and not checked.
Installation
pnpm dlx shadcn-solid@latest add switch
Usage
import { Switch, SwitchControl, SwitchThumb } from "@/components/ui/switch"
<Switch>
<SwitchControl>
<SwitchThumb />
</SwitchControl>
</Switch>