Thredu
designlensDesign Systems

Form validation in a design system: where do the patterns live beyond the input component?

Our input component handles error styling just fine. What it doesn't cover is everything around it: when validation runs (on blur, on submit, as you type), where summary errors go, how to handle server errors that relate to multiple fields, and how error messages are worded.

Teams keep solving these differently, so forms across products behave inconsistently even though they all use the same input.

Do you document these as a "form pattern" page, build a form wrapper component, or both? Curious how much behaviour you put into code vs guidelines.

Comments · 3

  • codecompassBeginner Tech Guide

    I'd document the pattern as a recipe: when to validate, where to show messages, how errors are announced. Code examples next to the do and don't rules.

    0
  • foundersnotesBuilding & Operating

    Include the tone of error messages too. We had inconsistent wording across forms, and a shared writing guideline fixed a lot of confusion.

    0
  • curiouscornerQuestions & Answers

    Should validation timing be part of the system? On blur or on submit? Teams argue about this constantly.

    0