Password
A super simple password input with a toggleable view button that hides or reveals your password.
Preview
Installation
bunx --bun shadcn@latest add @nordaun/password
Usage
/components/password-demo.tsx
| 1 | import { Password } from "@/components/ui/password"; |
| 2 | |
| 3 | export default function PasswordDemo() { |
| 4 | return ( |
| 5 | <div className="py-4 max-w-xs w-full mx-auto"> |
| 6 | <Password placeholder="Enter your password" /> |
| 7 | </div> |
| 8 | ); |
| 9 | } |