Password Input
A specialized input component for passwords with a built-in visibility toggle.
Installation
$ npx shadcn@latest add "/r/password-input.json"
Usage
Sizes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "sm" | "md" | "lg" | "md" | The size of the input. |
| error | boolean | false | Whether the input is in an error state. |
| disabled | boolean | false | Whether the input is disabled. |
| className | string | - | Additional CSS classes for the input element. |
| wrapperClassName | string | - | Additional CSS classes for the wrapper div (use for width constraints). |