Text fields and text areas

A text field allows users to input a single line of text (such as a contact name or a password), while a text area allows users to input several lines of text (such as a comment or a message).

This image shows text fields.

For more information on text input, see Keyboards and Forms.

Best practices

  • Include hint text in fields to minimize the need for descriptive labels. In some cases, you might need a label if the field contains a default value or if the description of the field is too long to include as hint text.
  • Try to minimize the amount of text that users need to type. Allow users to choose items from pickers where possible. In addition, try to store and display information that users enter so that they don't have to enter the same information again and again.
  • Suppress word prediction in text fields that will probably include text that is not likely to be in the dictionary (for example in password, phone number, URL, email, and name fields). When users are typing, they might be annoyed if the keyboard tries to predict words for these types of fields.

Was this information helpful? Send us your comments.