TValidateOn

type
Form & Input

Controls when field-level validation rules are evaluated — on blur, on input, on form submit, or a lazy variant of each.

TypeScript

Définition

La définition TypeScript telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Acceptées

Valeurs

Valeurs littérales de chaîne acceptées pour ce type. Cliquez sur une valeur pour la copier.

input
Validation runs on every keystroke / value change — immediate inline feedback.
blur
Validation runs when the field loses focus.
submit
Validation runs only when the enclosing form is submitted.
lazy blur
First validation fires on blur; subsequent validations fire on every input after the first error was shown.
lazy input
First validation fires on input; once an error appears it continues on every subsequent change.
lazy submit
First validation fires on submit; after that errors are cleared on every input change.
blur lazy
Alias of "lazy blur" — validate on blur with lazy re-evaluation once an error is visible.
input lazy
Alias of "lazy input".
submit lazy
Alias of "lazy submit".
lazy
Defers the first validation to the next cycle that matches the default trigger (blur), then validates eagerly on every subsequent change.

Écosystème

Utilisé par

Composants et props qui acceptent ce type comme valeur.

Usage

Exemples

Extraits de code prêts à coller utilisant ce type.

Validate an email field on blur with lazy re-check

html