Validator

Form validation states with visual feedback
Class Reference

Choose your validation hint behavior:

  1. Default validator-hint (stable layout)Recommended
    Hints remain in document flow - will be invisible but maintain their space until validation fails. Prevents layout shifts when hints appear.
  2. validator-hint hidden (compact layout)Optional
    Hints are removed from document flow - will take no space when hidden but may cause layout shifts when validation fails.

Basic

Email Validation

Validation with hint text

Enter valid email address

Password Requirements

URL input Requirements

Must be valid URL

Username Requirements

Must be 3 to 30 characters
containing only letters, numbers or dash

Date input Requirements

Must be 2025

Phone Number Requirements

Must be 10 digits

Number input Requirements

Must be between be 1 to 10

Checkbox Requirements

Toggle Requirements

Select Requirements

Required

Class Reference

Class Type Description
validator Component Applies validation state styling
validator-hint Part Validation message container
Do you have a question? ask the community
Do you see a bug? open an issue on GitHub