Elements

Reference

Password Input

PasswordInput, dressed in the paper-and-ink system: the reveal eye sits quiet at the field's edge and swaps in place — no shift, no noise. The parts — Root, Label, Control, Input, Indicator, VisibilityTrigger.

Root · Input · Label · Control · Indicator · VisibilityTrigger

#Control

A styled part — no props of its own; it takes the anatomy's shared styling.

#Indicator

PropTypeDefaultDescription
fallbackstringThe fallback content to display when the password is not visible.

#Input

A styled part — no props of its own; it takes the anatomy's shared styling.

#Label

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
sizeString as PropType<"sm" | "md" | "lg">"md"One rung of the control-height ladder for the field and its eye.
autoCompletepasswordInput.Props['autoComplete']The autocomplete attribute for the input
defaultVisiblebooleanWhether the password is visible by default
disabledbooleanWhether the input is disabled
idstringThe unique identifier of the machine.
idspasswordInput.Props['ids']The ids of the elements in the password input. Useful for composition.
ignorePasswordManagersbooleanWhether to ignore password managers
invalidbooleanWhether the input is in an invalid state
namestringThe name attribute for the input
readOnlybooleanWhether the input is read-only
requiredbooleanWhether the input is required
translationspasswordInput.IntlTranslationsSpecifies the localized strings that identifies the accessibility elements and their states
visiblebooleanWhether the password is visible
EventPayload
visibilityChangedetails: VisibilityChangeDetails
update:visiblevisible: boolean

#VisibilityTrigger

A styled part — no props of its own; it takes the anatomy's shared styling.