Text Input

Edit this file

Text inputs let users enter or edit single-line text. They are an essential form element, with support for validation and feedback.

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