Password input

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.

PasswordInput3D props

PropTypeDefaultDescription
valuestringCurrent value. Set it to control the component.
onValueChange(value: string) => voidCalled with the new value on every change.
placeholderstring"Password"Hint shown while the field is empty.
showStrengthbooleanShow 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-labelstringRequired: names the field for screen readers.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks