form-errors.md

Form errors

Labels, checks and error messages for any form, written so your AI tool follows them on every screen.

markdown · 13 rules · works with any style · updated Oct 2026

The same email unlocks the whole free library. Privacy policy

form-errors.md · previewrule titles · 66 lines in the file
1# Form errors
2
3## Rules
4
51. **Labels above fields.**
62. **Optional fields say so.**
73. **Hints before errors.**
84. **Check when the user leaves a field.**
95. **Focus the first error on submit.**
106. **The message sits under the field.**
117. **Say how to fix it.**
128. **One message per field.**
139. **Keep every value.**
1410. **Server errors land on the field.**
1511. **The button stays ready.**
1612. **Let the browser help.**
1713. **Done in one sentence.**

this file covers

  • Where labels go and how optional fields read
  • When to check a field, and where focus goes
  • Error messages that say how to fix the problem
  • Keeping what the user already typed

it leaves out

  • The sign-in and sign-up flows around the form
  • Every field state as code, in all 16 styles
  • Blocks for your registry and a demo

the whole flow

Sign-in & Sign-up UX Pack

Sign in, sign up, email check and password reset, with every state and error.

More free files

The whole library
states-ux.mdStates for every screenpricing-table.mdPricing tableonboarding-checklist.mdOnboarding checklist