Text Input

Edit this page

Text inputs allow users to enter and edit single-line text content. They are fundamental form elements that provide accessible, flexible data entry with proper validation, states, and user feedback mechanisms.

Form InputAccessibleValidationKeyboard NavigableResponsive
When to Use Text Input
Understanding the appropriate use cases for text input components in your interface.

Use Text Input When:

  • Free-form text entry: Names, messages, descriptions
  • Single-line data: Email addresses, phone numbers
  • Search functionality: Query input and filtering
  • Unique information: Cannot be selected from a predefined list
  • User-generated content: Comments, titles, usernames

Don't Use When:

  • Multi-line text: Use textarea instead
  • Predefined options: Use select or radio buttons
  • Binary choices: Use checkbox or switch
  • Date selection: Use date picker
  • Numeric ranges: Use slider or stepper

Basic Examples

Please enter your first and last name