<?xml version="1.0" encoding="utf-8"?>

Text input

Text input

Text inputs are the most common form input type. They can take many shapes and forms, depending on the situation and type of data being input. You might use text input for collecting names, email addresses, phone numbers, or longer-form text (such as comments) from users.

Make sure you create text inputs that recognize different types of data. For instance, when users input a phone number, the input field could auto-format the digits into the expected pattern and switch the mobile keyboard to a numerical layout. Similarly, for email addresses, the input could enforce the correct structure and adjust the keyboard type accordingly. This can help reduce errors and ultimately improve the user experience.[1]

Improve your UX & Product skills with interactive courses that actually work