Text fields can be single-line, with or without scrolling, or multi-line. They may also display an icon.
The type of text field determines what kind of characters are allowed inside the field. The virtual keyboard layout may be optimized for frequently used characters.
Common input types for which you should optimize include:
- Number: Phone number, credit card number, PIN
- Text: Proper name, username, URL
- Mixed format: Email address, street address, search query
Input intended for naming something – such as a Bluetooth device, user, fingerprint, or alarm – should have every word auto-capitalized by default.
Otherwise, if the input field is intended for sentence-like messages, such as SMS or screen lock, only the first word should be auto-capitalized.