PasswordRule
A single requirement rendered in the checklist and reported to onValidityChange.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”id: string;Stable identifier; also the React key and the data-rule attribute value.
label: string;Shown in the checklist.
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”falsetest: (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