React Hook Form + Zod
Controller binds the switch to RHF; Zod requires opt-in on submit.

- Library
- FLX UI
- Framework
- React
- Type
- block
- License
- AGPL-3.0
- Dependencies
- @hookform/resolvers, react-hook-form, sonner, zod
- Install
pnpm dlx shadcn@latest add @flx/switch-12- Files
registry/patterns/switch/switch-12.tsxsrc/components/ui/button.tsxsrc/components/ui/field.tsxsrc/components/ui/switch.tsxsrc/lib/utils.tssrc/components/ui/label.tsxsrc/components/ui/separator.tsx
- Source
- https://github.com/felipemenezes098/ui-flx
Categories
- Input Components
- React Input Components
- Tailwind CSS Input Components
- shadcn/ui Input Components
- Switch Components
- React Switch Components
- Tailwind CSS Switch Components
- shadcn/ui Switch Components