Input Field
A box where users type information.
See it on the 3D treeGoing deeper
A good field has a visible label, a suitable size, and states for focus, error and disabled. Setting the right input type and autofill hints can bring up an appropriate mobile keyboard and let browsers fill known details. Help text belongs outside the box where it stays visible.
Why it matters
Small decisions about a field strongly affect typing effort, errors and accessibility.
In practice
For a one-time code, you request a numeric keyboard, allow pasting and let the phone suggest the code.
Common mistake
Making the box far shorter or longer than the expected answer, or blocking paste.
Connected terms
- FormForms are made up of fields and other controls.
- PlaceholderA placeholder is temporary hint text shown inside an empty field.
- Search BarAt heart it is a text input with its own behaviour and results.