Did you know?dyk.si

Inline Validation

A green check or red message beside a field as you fill it, before you submit.

aria-invalid + aria-describedby

When 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/CSSaria-invalid + aria-describedby
Reactreact-hook-form errors
Jetpack ComposeOutlinedTextField(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.