Input
Input
Input
provides an editable field where users can enter text and numeric values. It works best for short, freeform content and data entry.
- Wrap
Input
inFormField
to provide the field with a visible label, help text, and a status message for validation feedback. This will ensure it complies with accessibility guidelines. You can find more information in the W3C form instructions. - The component clips text that extends beyond its visible area. All states have the same behavior—default, read-only, and disabled—whether or not the input has focus. To view the text in its entirety, the user can traverse the characters using the cursor.
For accessibility purposes, we recommend you use the emptyReadOnlyMarker
prop to add a marker for empty read-only fields. This ensures it’s clear that a value is not necessary for the current selection or configuration.
Key | Function |
---|---|
Tab |
|
Shift + Tab | If focused, Shift + Tab moves focus out of the component to the previous component in the tab order. |
Enter | If an interactive adornment, e.g., a button, has focus, Enter activates the element. |
Space |
|
Right Arrow | When the input area has focus:
|
Left Arrow | When the input area has focus:
|
Shift + Left Arrow / Shift + Right Arrow | Drags selection over text characters, one at a time. |
Backspace | When the input area has focus and:
|
Alphanumeric / Special keys | When the input area has focus, this action inserts the relevant character at the position of the text cursor. |
Control + A / Command + A | This action highlights all strings within the field. |
- Wrap
Input
inFormField
to provide the field with a visible label, help text, and a status message for validation feedback. This will ensure it complies with accessibility guidelines. You can find more information in the W3C form instructions. - The component clips text that extends beyond its visible area. All states have the same behavior—default, read-only, and disabled—whether or not the input has focus. To view the text in its entirety, the user can traverse the characters using the cursor.
For accessibility purposes, we recommend you use the emptyReadOnlyMarker
prop to add a marker for empty read-only fields. This ensures it’s clear that a value is not necessary for the current selection or configuration.
Key | Function |
---|---|
Tab |
|
Shift + Tab | If focused, Shift + Tab moves focus out of the component to the previous component in the tab order. |
Enter | If an interactive adornment, e.g., a button, has focus, Enter activates the element. |
Space |
|
Right Arrow | When the input area has focus:
|
Left Arrow | When the input area has focus:
|
Shift + Left Arrow / Shift + Right Arrow | Drags selection over text characters, one at a time. |
Backspace | When the input area has focus and:
|
Alphanumeric / Special keys | When the input area has focus, this action inserts the relevant character at the position of the text cursor. |
Control + A / Command + A | This action highlights all strings within the field. |
- Wrap
Input
inFormField
to provide the field with a visible label, help text, and a status message for validation feedback. This will ensure it complies with accessibility guidelines. You can find more information in the W3C form instructions. - The component clips text that extends beyond its visible area. All states have the same behavior—default, read-only, and disabled—whether or not the input has focus. To view the text in its entirety, the user can traverse the characters using the cursor.
For accessibility purposes, we recommend you use the emptyReadOnlyMarker
prop to add a marker for empty read-only fields. This ensures it’s clear that a value is not necessary for the current selection or configuration.
Key | Function |
---|---|
Tab |
|
Shift + Tab | If focused, Shift + Tab moves focus out of the component to the previous component in the tab order. |
Enter | If an interactive adornment, e.g., a button, has focus, Enter activates the element. |
Space |
|
Right Arrow | When the input area has focus:
|
Left Arrow | When the input area has focus:
|
Shift + Left Arrow / Shift + Right Arrow | Drags selection over text characters, one at a time. |
Backspace | When the input area has focus and:
|
Alphanumeric / Special keys | When the input area has focus, this action inserts the relevant character at the position of the text cursor. |
Control + A / Command + A | This action highlights all strings within the field. |