Back to Components
Inputs
Pin Input
A polished 6-digit PIN input with animated focus and fill states.
Dependencies
- clsx
- tailwind-merge
- framer-motion
Files
- components/ui/pin-input.tsx
Installation
Using shadcn CLI
npx shadcn add pin-input --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge framer-motion