Appearance
FormGroupValidated
An input with inline validation messages.
Live Demo
Usage
html
<div
data-component="FormGroupValidated"
data-props='{"name":"username","label":"Username","minLength":3,"maxLength":12,"placeholder":"yourname"}'
></div>Behavior
- Validates on input and blur; adds aria-invalid and error message with role=alert.
- Emits
form:updateon input andform:validateon blur with{ name, value, valid, error }.