Purpose: Standard patterns for form validation and error handling.
Referenced by: Input Field, Form component-type instructions
Required Fields:
validation:
required: true
message: 'This field is required'
Format Validation:
validation:
type: email
pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/
message: 'Please enter a valid email address'
Length Validation:
validation:
minLength: 8
maxLength: 100
message: 'Password must be 8-100 characters'
Visual Indicators:
Timing:
Visual Indicators:
When to Show:
Reference this when specifying form components.