Input Fields Component
- 1 Component States
- 1.1 Default State
- 1.2 Hover State
- 1.3 Active State
- 1.4 Disabled
- 1.5 Focused State
- 1.6 Error
- 2 Input States
- 3 Icon Presence/Location
- 3.1 Input field with icon
- 3.1.1 Icon Left
- 3.1.2 Icon Right
- 3.1 Input field with icon
- 4 Messages
- 4.1 Error messages
- 4.2 Helper Text
- 5 Modes
- 5.1 Light Mode
- 5.2 Dark Mode
- 5.3 Visual Representation
- 6 Changelog
The purpose of an input field is to allow users to enter and edit text or data within a form or user interface.
Component States
Default State
The standard appearance of the input field.
[example image]
Hover State
The appearance when the user hovers over the input field.
[example image]
Active State
The appearance when the input field is clicked or pressed.
[example image]
Disabled
How the input field appears when it's not interactive.
[example image]
Focused State
The appearance when the input field is focused, usually via keyboard navigation.
[example image]
Error
The appearance of the input field when the user enters invalid or no value.
[example image]
Input States
Typed
The appearance of the input field changes when the user has entered the value.
[example image]
Not Typed
The appearance of the input field when the field is empty and has a placeholder text.
[example image]
Icon Presence/Location
Input field with icon
Icon Left
[TBC] The icon placed on the left can be used to signify the type of input expected.
Icon Right
The icon placed on the right can be used for actions like clearing input.
Messages
Error messages
Error messages are displayed below the input field to inform users of validation issues, and they are styled with red text and icons to catch the user’s attention.
Helper Text
Helper text offers additional context or instructions related to the input field. It appears below the field, and provides users with helpful hints or formatting guidelines.
Modes
Light Mode
[body copy]
Dark Mode
[body copy]
Visual Representation
[Show an image or embed a Figma frame/screenshot of each mode]
Changelog
Version | Date | Author | Description | Note/Impact |
---|---|---|---|---|
1.0 | 22-08-2024 | @Kseniya Kamen | Initial release of documentation for input field component | n/a |
|
|
|
|
|