Skip to content
English
States are missing39 / 71

Errors next to the field

What goes wrong

One red message at the top of the form makes people hunt for the field that is wrong and guess how to fix it.

The fix

Check each field when the person leaves it and say how to fix it right under that field.

Tell your AI

Validate each field on blur and show the error directly beneath it: a var(--ds-danger) ring on the field, then an icon and one sentence at var(--ds-font-size-xs) (12px) in var(--ds-danger) that says how to fix it; clear it as soon as the value is valid.

  • --ds-danger
  • --ds-danger-soft
  • --ds-font-size-xs12px
Why AI-generated UIs all look the same: 12 rules that fix it

Book the Saturday yoga class

Something went wrong. Check the form.

NameMia
Emailmia@example

Add the domain after @, like example.com