Switch
- from @shadcnuikit
A control that allows the user to toggle between on and off. Every switch variant toggles reliably with Radix UI and Base UI semantics.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @shadcnuikit/switch2Component source
No live preview has been built for this component yet.
Registry dependencies2
- label
- switch
Packages0
No npm packages are installed with it.
