Single Line Text
Single Line Text is used to insert a small amount (or single line) of text, such as a name or a city.
States
Default
Empty field, waiting for user interaction. Placeholder is visible.
Hover
Hover state indicates interactivity when the cursor is on the input field by changing the border color.
Active/Focus
Active state: Occurs during the moment an element is being activated by the user's input. Focus state: Indicates that an element is currently selected to receive user input, whether from a keyboard, mouse, or voice.
Disabled
Value is visible but not editable
Filled
Field contains user input. Placeholder is replaced by entered value.
Typing
User is actively entering text. Cursor is visible and input updates in real time.
Read only
Field content is visible but not editable. No cursor interaction.
Valid
Triggered when input meets validation rules. (On form submit) Green border + success helper text confirms correct input.
Error
Triggered when validation fails. (On form submit) Red border + error message guides user to correct the input.
Max Length
Maximum character limit reached. Additional input is restricted and helper message may appear.
Behaviour
With char count
- Shows remaining characters as users type, helping them stay within the allowed limit.
Specs
1
Label
- Describes the purpose of the input field.
- Recommended max 100 char
2
Input text
- The main area where users type in their data.
- Max 255 char
3
Helper text
- Optional. Provides additional guidance or contextual information.
- Keep copy short. Read usage guidelines.
- Recommended max 30 char (include spaces).
4
Field icon
- 20x20, SVG
- Positioned on the right side of the field
- Required for error and success states; optional for other variants
- Refer to the Utility Icon Library for the available icons
5
Counter
- Shows entered characters out of maximum limit.
1
Label
3
Input is valid
7 / 255
5
Dos and Don'ts
- Do not use input fields without proper labels as using placeholders by themselves can confuse users.
- Avoid long placeholder text. If you require to include more text, please consider using the helper text area.