Floating Input - React Hook Form
A Floating Input component that uses react-hook-form Controller.
Installation
npx shadcn@latest add /registry/rhf-floating-input.json
Manual Installation
This component is dependent on floating-input component. Please add that component first before adding this one.
1. Copy and paste the following code into your project.
2. Add this to your @/components/ui/hook-form/index.tsx
file for easy import.
Shadcn
This input component is built on top of the excellent foundation provided by Shadcn/UI.
For a deeper dive into the core concepts and building blocks, check out the original Shadcn input component.