Docs
Password Input

Password Input

Password Input provides a way for the user to securely enter a password, with the ability to toggle the visibility of the password.

Installation

npx shadcn@latest add https://ui-x.junwen-k.dev/r/password-input.json

Usage

import {
  PasswordInput,
  PasswordInputAdornmentToggle,
  PasswordInputInput,
} from "@/components/ui/password-input"
<PasswordInput>
  <PasswordInputInput placeholder="Password" />
  <PasswordInputAdornmentToggle />
</PasswordInput>

Examples

Default

Checkbox

Form