Docs
Switch
Switch
A control that allows the user to toggle between checked and not checked.
Installation
npx shadcn-ui add switchnpx shadcn-ui add switchUsage
import { Switch } from "@/components/ui/switch"import { Switch } from "@/components/ui/switch"<Switch /><Switch />React Hook Form
Note: Learn more about using React Hook Form on the docs page.