Command Palette
Search for a command to run...
Validation Types
Validation Modes Demo
Experience how different validation modes affect user experience. Try typing in each field to see when validation occurs.
onChange Mode
Validates on every keystroke
onBlur Mode
Validates when you leave the field
onSubmit Mode (Default)
Validates only when you click submit
onTouched Mode
Validates on blur, then on every change
| Mode | When Validation Occurs | Best For |
|---|---|---|
| onChange | Every keystroke | Real-time feedback (e.g., password strength) |
| onBlur | When leaving the field | Less intrusive validation (recommended for most cases) |
| onSubmit | When form is submitted | Simple forms, minimal interruption |
| onTouched | First blur, then every change | Balance between UX and feedback |