Password Input

Password field with a show/hide toggle.

Password Input

Password field with a show/hide toggle.

Preview

Features

  • Show/hide toggle, disabled while the field is empty.
  • Hides the browser’s built-in reveal button.
  • Accepts every native input prop.

Installation

npx shadcn@latest add https://www.shadcn-form.com/r/password-input.json

The CLI installs every dependency listed in the registry item.

Usage

import { PasswordInput } from '@/components/ui/password-input'
const [password, setPassword] = React.useState('')
<PasswordInput value={password} onChange={(e) => setPassword(e.target.value)} />