Text Field

Used to enter free-form text that’s no longer than one line.

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

Best Practices

Do

Do use the optional or required marker to denote if a field should be filled.

Do

Do use helper text to provide additional guidance in providing valid information.

Do

Do use helper link to provide additional educational resources instead of making help text lengthy.

Do

Do use form validation after the users have finished interacting with the form element. Provide actionable advice on how to address errors.

Don't

Don’t use optional and required markers at once.

Don't

Don’t use Text Field to provide long, multi line text. Use Textarea component instead.