Forms
Form patronen met input, label en validatie states
Forms
Form patronen combineren Input componenten met labels, help tekst en error states.
Basis Form Group
Error State Pattern
Token Gebruik
| Element | Token |
|---|---|
| Label | text-caption, text-label-primary, font-medium |
| Input border (default) | border-outline-strong |
| Input border (focus) | border-outline-active + ring-outline-active |
| Input border (error) | border-label-critical + ring-label-critical |
| Error message | text-caption, text-label-critical |
| Placeholder | text-label-tertiary |
✦
Validatie
Toon errors pas na blur of form submit — niet tijdens typen. Gebruik aria-invalid en aria-describedby voor screen readers.