Switch
- from @miseui
Sliding on/off control whose thumb travels 16 px in 150 ms, mirroring the physical toggle it imitates.
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 @miseui/switchLive preview
No live preview has been built for this component yet.
Registry dependencies2
- utils
- motion
