Getting started
Foundation
Typography
Navigation
Feedback
Forms
Text input allows user to enter text.
Input should be disabled, when input shouldn't be allowed to be interacted with.
Compared to a disabled input, read only input is usually used for values that user might want to copy to clipboard.
Invalid input indicates that value isn't what the system expects.
TextInput
accepts a type
prop, which accepts the same values as type
attribute of an input
tag.
Inherits margin props.
Name | Default | Description |
---|---|---|
isDisabled | — | boolean Determines whether input is disabled and doesn't respond to any user interactions. |
isReadOnly | — | boolean Determines whether input can be interacted with, but value can't be changed. |
isInvalid | — | boolean Indicates that input value is invalid. |
isRequired | — | boolean Indicates that input is required to fill out. |
type | — | "text"
| "password"
| "email"
| "date"
| "datetime-local"
| "number"
| "tel"
| "time"
| "url"
| "week" Input type. |
value | — | string Input value. |
width | "xs" | "xs" | "sm" | "md" | "lg" | "auto" | "100%" Input width. |