PasswordRuleState
The evaluated state of one PasswordRule.
Extends
Section titled “Extends”Properties
Section titled “Properties”id: string;Stable identifier; also the React key and the data-rule attribute value.
Inherited from
Section titled “Inherited from”label: string;Shown in the checklist.
Inherited from
Section titled “Inherited from”met: boolean;optional?
Section titled “optional?”optional optional?: boolean;A failing optional rule is advice, not an error: it renders in the
checklist but never blocks onValidityChange.
Default
Section titled “Default”falseInherited from
Section titled “Inherited from”test: (password) => boolean;Pure predicate. Runs on every keystroke, so keep it cheap.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
password | string |
Returns
Section titled “Returns”boolean