Back to Components
Inputs
Password Input
A password input with a toggle button to show or hide the password. Uses accessible labels and smooth transitions.
Dependencies
- clsx
- tailwind-merge
- lucide-react
Files
- components/ui/password-input.tsx
Installation
Using shadcn CLI
npx shadcn add password-input --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge lucide-react