Inline Validation
A green check or red message beside a field as you fill it, before you submit.
aria-invalid + aria-describedbyWhen to use it
For fields with rules: email, password, username.
Common mistake
Don’t show an error before the user finishes typing.
Accessibility
Validate on blur, not on every keystroke, and never rely on color alone.
Name in code
| HTML/CSS | aria-invalid + aria-describedby |
|---|---|
| React | react-hook-form errors |
| Jetpack Compose | OutlinedTextField(isError, supportingText) |
| SwiftUI | .onChange + Text (custom) |
Ready prompt for your coding agent
Add a Inline Validation to this screen.
What it is: A green check or red message beside a field as you fill it, before you submit.
Implement with: aria-invalid + aria-describedby (HTML/CSS).
Accessibility: Validate on blur, not on every keystroke, and never rely on color alone.
When to use it: For fields with rules: email, password, username.
Avoid: Don’t show an error before the user finishes typing.
Reuse the project's existing design tokens, spacing and component conventions.
Or compose a whole page from this element and others →
Prompts are in English for the most precise results with coding agents.