Components
Input
A single-line text field, paired with Label.
Border and focus-ring colour come from the brand's semantic tokens — switch brands below to see the focus ring shift.
Props
Prop
Type
Accessibility
- Pass
labelrather than placing a placeholder alone — a placeholder is not a substitute for a label; it disappears the moment someone starts typing.Inputwires the<label>'shtmlForto a generated (or your own)idautomatically. - Pass
error, don't just style the field red by hand — it setsaria-invalidandaria-describedbyon the input and renders the message with a matchingid, so screen readers announce it. NumberInput,AffixInput, andDateInputall build on the same base — they inherit its label/error/focus/disabled behaviour automatically.
Do / Don't
- Do use
error, nothelper, for validation messages —helperstays visible and neutral;errorreplaces it, turns the border red, and is announced. - Don't disable an input to communicate "not applicable" — prefer removing it or explaining why, since a disabled field with no context reads as broken to screen-reader users.