Form Inputs

Password Field

A secure text input for passwords with a visibility toggle button.

A secure text input for passwords with a visibility toggle button. Allows users to show or hide their password while typing, improving usability without compromising security.

Component props#

NameTypeDescription
labelstringLabel text displayed above the field
valuestringControlled value
defaultValuestringDefault value (uncontrolled)
isDisabledbooleanDisables the field
isReadOnlybooleanMakes the field read-only
isRevealedbooleanControls whether the value is visible
defaultRevealedbooleanInitial visibility (uncontrolled)
onRevealChange(revealed: boolean) => voidCalled when the visibility toggle is pressed
autoCompletestringDefaults to "current-password"
onChange(value: string) => voidCalled when value changes