Input Field
Joule / Components / Input Field
Intro
The input field is the area where users type their text input to communicate with Joule.
Input field on compact (left) and regular screen (right)
Usage
Do
- Allow users to enter up to 2000 characters within up to 6 lines of text. Any text beyond this limit will be cut off.
- Automatically save the text in the input field if users leave the input field without sending their message.
Don't
- Don’t send a message that doesn’t contain any text input.
- Don’t allow typing when the character limit is reached.
Anatomy
A. Text Input Box
The text input box is the container for the text input.
B. Attachments & Modes Button
The “+” button allows users to upload attachments.
C. Placeholder Text
The placeholder text prompts users to enter text. For example: “Message Joule”.
D. “Dictation” Button
The “Dictation” button activates dictation mode and lets users input text by talking to Joule.
E. “Voice” Button
The “Voice” button activates voice mode. Voice mode lets users interact with Joule via voice. The "Voice" button changes to an active "Send" button as soon as a user inputs any text.
F. User Input
User input is the text that is displayed as live input from users.
G. "Mention" Button
The "Mention" button allows users to tag an agent to receive more specific replies. The icon button becomes disabled when an attachment is uploaded into the input field, and is hidden once an agent is selected.
H. Character Limit (Optional)
The character limit shows the live count of character entered and the number of characters allowed. This helper text is displayed when the input reaches 1800 characters.
I. "Send" Button
The "Send" button sends out the message to Joule.
J. "Expand" Button
The “Expand” button is displayed once the text in the input field crosses 5 lines of text. If tapped, it expands the height of the input field. Once expanded, the “Expand” button changes to a “Collapse” button that resets the height of the input field.
Enabled input field (top) and active input field with user input and the character count and limit (bottom)
Behavior and Interaction
Tapping on the Input Field to Type
Tapping on the input field
Keeping the User Input in the Input Field
Text input kept in the input field after tapping outside of the input field
Expanded Input Field
The input field expands to fit a maximum of five lines of user text. Once the limit is reached, the field becomes scrollable so users can review what they have typed. Tapping on the "expand" button enlarges the input field's real estate, giving users more space to see what they are typing.
When the input reaches 1800 characters, a word count is displayed. Upon reaching 2000 characters, the input field stops logging additional text.
Scrolling in the input field
Variations
The input field for Joule has various states and variations. They depend on either user action or the state of the chat.
Initial Loading
Input field in initial loading state
Enabled (Default)
Input field in enabled state
Active
Input field in active state
Typing
Input field in typing state
Max Height
Max height of an input field
Expanded
Expanded input field
Dictation Mode
Input field in dictation mode
Adaptive Design
The width of the input field is determined by the panel width.
Input field on a compact screen (left) and on a regular screen (right)