Skip to content
English
  • There are no suggestions because the search field is empty.

Input Fields

Input fields, including text fields and text areas, allow users to enter and edit text into the UI. Read only fields are not editable.

Anatomy

21ef012a-9c00-476e-b297-d50f76e104f2

  1. Leading icon / checkbox (optional)

  2. Field label text

  3. Input text

  4. Trailing icons (optional)

  5. Suffix text (optional)

  6. Input line

  7. Helper text (optional)

Field Label Text

Field label text is used to inform the user what information is being requested for the text field or text area. Every text field should have a label.

Field label text should be aligned with the input line and always visible. It should be placed at the top left of each input field.

Required Fields

Required fields will be signified with an asterisk (*) next to the field label text. In addition, field label text in required fields will be displayed in an orange “highlighter” style. Once the user has entered an input into a required field, the orange highlight should disappear.

247ebfe5-574c-40f6-a0f8-039dc6f051a6

Input Text

035e808a-c2f7-4f76-9504-4f721d7a93cb

Input text is the text that the user enters into the text field. Input text should be clearly visible and legible. The cursor indicates the current location of text input in the field.

  1. Input text

  2. Cursor

  3. Input line displayed in active state

Helper Text & Error Messages

bd461aad-eac0-4f44-9564-cd938cade508

  1. Helper text

  2. Error message

Helper text provides users with additional guidance about the input field, and what is being asked. It should be a concise message and only take up a single line. It can span the length of the input line and remain persistently visible.

Display an error message if the user input is not acceptable. Error messaging can replace helper text where applicable and should provide clear instructions to the user about what needs to be fixed.

Icons

Including icons as part of input fields is optional. Throughout our application, there may be instances that require the use of multiple icons in one input field. Typically icons will allow users additional actions or controls related to the input.

f6a83dbb-f7c1-4c53-a3f7-dee4ce6715bb

Various examples of icon placement and usage
  1. Leading icon / checkbox - used to indicate an active state

  2. Single trailing icon

  3. Double trailing icons

  4. Dropdown icon - indicates the text field has a nested selection component

  5. Numeric up/down control - used for numeric inputs where users can adjust the value by clicking the arrows, using up and down arrow keys, or typing in the field directly

States

e3c009f9-9c1e-48cf-aa80-ef3ae2f4904d
States in light mode
 
0d5e0679-1fc7-4556-b6ad-dbf1ef3a8394
States in dark mode

Read Only & Flagged Fields

Read only fields display pre-filled data that the user cannot edit. Flagged fields are less common but can be set by users via a separate control in the UI. Read only and flagged fields are styled differently in that they include a background fill behind the input text.

8a66185d-3d03-4260-a5f6-d987e25c54fc
Light mode
b28f84e0-2012-4c17-a00c-e83d5d24ff3b
Dark mode

Text Areas

Text areas retain all of the same basic anatomy and color styling applied to text fields. The main difference is text areas have an increased variable height which allows room for multiple lines of text. Depending on the use case and amount of user input, text areas may feature also a vertical scroll.

1e5daf95-e8fd-48bb-9242-7ad7af4911c2
Text areas in light mode
 
c1b12358-8cbc-42e1-a45f-2f0be0b69614
Text areas in dark mode