Usage guidelines outline how the component should and shouldn’t be used in different user interface contexts.
When to use
- Collecting short, free‑form text
- Expecting single‑line length input
When not to use
- Expected user input is long‑form (use Textarea instead)
- User input should be a choice, rather than freeform text (use Select, Radio Group, or Checkbox Group instead)
Best Practices
Do use the optional or required marker to denote if a field should be filled.
Do use helper text to provide additional guidance in providing valid information.
Do use helper link to provide additional educational resources instead of making help text lengthy.
Do use form validation after the users have finished interacting with the form element. Provide actionable advice on how to address errors.
Don’t use optional and required markers at once.