Getting started
Components
A basic component that allows a user to write or edit text.
Use inputs in forms to help people enter, select, and search for text. Inputs are normally found within a form but can also be part of a modal, search, or card.
Inputs should be used with the Field component to provide labels and descriptions for the input.
Input has the ability to have placeholder text. Use placeholder text sparingly, as placeholder text is often confused for actual text. Confusing placeholder text for text often results in higher error rates with users missing inputs that need filled out. When the input is used with field, placeholder text should not be used in favor of using the label and description.
Input is able to have an element, such as an icon, placed inside the input at the beginning or end. This allows for the creation of inputs like search fields with a magnifying glass icon.
An accessory, commonly a button, that can occur before or after the input.
A text input allows users to enter text, numbers, and special characters into the input.
A number input limits users to only entering numerical characters into the input.
A password input masks the characters entered by the user.
The invalid state for the input signifies that the provided content needs correction or additional content needs to be added before the user is able to proceed.
For some situations, the input is able to indicate that it is loading.
Depending on user permissions or if an input is synced with a datasource, an input can have a disabled state.
Documentation | Storybook | Source code