The PasswordInput creates an input of type password with a set of rules. The eye icon lets you display the password if needed.
View source codestring
The current value
string
className for the element.
"content" | "parent"
Whether the PasswordInput should fit its parent or content.
Default: contentstring
The id of the PasswordInput.
boolean
Whether the Input should be disabled.
Default: falsestring
The name of the PasswordInput, used when submitting an HTML form.
FocusEventHandler<HTMLInputElement>
Handler that is called when the input loses focus.
ChangeEventHandler<HTMLInputElement>
Handler that is called when the value changes.
FocusEventHandler<HTMLInputElement>
Handler that is called when the input receives focus.
KeyboardEventHandler<HTMLInputElement>
Handler that is called when a key is pressed.
string
Temporary text that occupies the PasswordInput when it is empty.
Ref<HTMLInputElement>
PasswordRule[]
The rules to apply.
Default: []