Rxova
Skip to content

PasswordRule

A single requirement rendered in the checklist and reported to onValidityChange.

id: string;

Stable identifier; also the React key and the data-rule attribute value.


label: string;

Shown in the checklist.


optional optional?: boolean;

A failing optional rule is advice, not an error: it renders in the checklist but never blocks onValidityChange.

false

test: (password) => boolean;

Pure predicate. Runs on every keystroke, so keep it cheap.

ParameterType
passwordstring

boolean