Member-only story
UI cheat sheet: text fields

Apart from buttons, text fields are probably one of the most used user inputs. When you sign in to Friendface, or order a Nicholas Cage pillow online, or send your banking details to your new online pen-pal, chances are, you will use a text field.
In later cheat sheets, we will look at pre-determined text fields (aka dropdowns) and how to style forms, but for now, we will be looking at ye old humble text fields and how we should style them.
So what’s in this cheat sheet:
- Text field anatomy
- Text field structure
- Common text field styles
- Icons
- Text field states
- Text field labelling & prompt text
- Feedback
- Autoformat
- Touch targets
- Accessibility checklist
- Text field hall of fame
- Closing thoughts
1. Text field anatomy
Text fields have multiple bits and pieces, some of which are only visible depending on what state it is in (default, active, inputted, etc). The below image breaks it all down. Bearing in mind that the style of the field may change, chances are that it will still have most of these elements.