UsePasswordInputOptions
Properties
Section titled “Properties”autoComplete?
Section titled “autoComplete?”optional autoComplete?: string;blocklist?
Section titled “blocklist?”optional blocklist?: string[];capsLockWarning?
Section titled “capsLockWarning?”optional capsLockWarning?: boolean;checkCompromised?
Section titled “checkCompromised?”optional checkCompromised?: (password, signal) => Promise<boolean>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
password | string |
signal | AbortSignal |
Returns
Section titled “Returns”Promise<boolean>
checkCompromisedDelay?
Section titled “checkCompromisedDelay?”optional checkCompromisedDelay?: number;defaultRevealed?
Section titled “defaultRevealed?”optional defaultRevealed?: boolean;defaultValue?
Section titled “defaultValue?”optional defaultValue?: string;disabled?
Section titled “disabled?”optional disabled?: boolean;estimate?
Section titled “estimate?”optional estimate?: (password) => PasswordStrength;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
password | string |
Returns
Section titled “Returns”hideOnBlur?
Section titled “hideOnBlur?”optional hideOnBlur?: boolean;optional id?: string;maxLength?
Section titled “maxLength?”optional maxLength?: number;minLength?
Section titled “minLength?”optional minLength?: number;minScore?
Section titled “minScore?”optional minScore?: | PasswordScore | null;onBlur?
Section titled “onBlur?”optional onBlur?: (event) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | FocusEvent<HTMLElement> |
Returns
Section titled “Returns”void
onChange?
Section titled “onChange?”optional onChange?: (value) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | string |
Returns
Section titled “Returns”void
onFocus?
Section titled “onFocus?”optional onFocus?: (event) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | FocusEvent<HTMLElement> |
Returns
Section titled “Returns”void
onRevealChange?
Section titled “onRevealChange?”optional onRevealChange?: (revealed) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
revealed | boolean |
Returns
Section titled “Returns”void
onValidityChange?
Section titled “onValidityChange?”optional onValidityChange?: (valid) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
valid | boolean |
Returns
Section titled “Returns”void
onWarn?
Section titled “onWarn?”optional onWarn?: (warning) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
warning | PasswordWarning |
Returns
Section titled “Returns”void
readOnly?
Section titled “readOnly?”optional readOnly?: boolean;revealed?
Section titled “revealed?”optional revealed?: boolean;rules?
Section titled “rules?”optional rules?: PasswordRule[];userInputs?
Section titled “userInputs?”optional userInputs?: string[];value?
Section titled “value?”optional value?: string;