Switch
- from @ouro
A labeled on/off switch on the Field contract, with the label to its right: pass `label`, and `checked` with `onCheckedChange` (or `defaultChecked`).
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 @ouro/switchComponent source
No live preview has been built for this component yet.
Registry dependencies7
- @ouro/field
- @ouro/lib-control-ref
- @ouro/lib-dev
- @ouro/lib-env
- @ouro/lib-touch-target
- @ouro/lib-use-dev-messages
- @ouro/lib-use-field