CSS Toggle Switch Collection with 15 Styles on a Real Checkbox, Sizes, Disabled and RTL
- from @weinc
Free CSS toggle switches in 15 styles, each a native checkbox with role=switch. Pick small, medium or large, try disabled and right to left, then copy the code.
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 @weinc/css-toggle-switch-collection-with-15-styles-on-a-real-checkbox-sizes-disabled-and-rtlRegistry dependencies0
The CLI adds no other registry items with this one.
Packages0
No npm packages are installed with it.
