A password field with a show and hide button and an optional strength meter that is announced to screen readers as you type.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | Current value. Set it to control the component. | |
| onValueChange | (value: string) => void | Called with the new value on every change. | |
| placeholder | string | "Password" | Hint shown while the field is empty. |
| showStrength | boolean | Show the strength meter under the field. | |
| autoComplete | "current-password" | "new-password" | "current-password" | Browser autofill hint: "current-password" to log in, "new-password" to sign up. |
| aria-label | string | Required: names the field for screen readers. | |
| className | string | Extra classes added to the outer element. |