TextInput API
API reference docs for theTextInput
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
|
| Slot to render start adornment. | _ |
|
| Slot to render end adornment | _ |
|
| Identifies the currently active element when DOM focus is on the text input. | _ |
|
| Indicates whether inputting text field can show suggested values and how those suggestions appear. | _ |
|
| Identifies the element(s) that the text input controls. | _ |
|
| Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. | _ |
|
| Indicates the availability of a popup related to the text input. | _ |
|
| Indicates if autocomplete is enabled for the input field. | _ |
|
| Indicates if auto-correction is turned on for the input. | _ |
|
| Automatically sets focus on the input field when it appears | _ |
|
| The initial value of the text input. | _ |
|
| When true, the input becomes uneditable, makes it read-only, and blocks interaction. |
|
|
| It specifies the type of virtual keyboard to display, helping users enter the correct type of data more easily. | _ |
|
| Identifier for the input, used in form submissions. | _ |
|
| A function that executes when the input loses focus. | _ |
|
| A function that executes when the input's value changes. | _ |
|
| A function that triggered when the input receives focus. | _ |
|
| A function that called when a key is pressed while the input is focused. | _ |
|
| A function that called when Textinput is clicked. | _ |
|
| A function that executes when content is pasted into the input. | _ |
|
| Regular expression pattern the input's value must match for validation. | _ |
|
| Placeholder text displayed when the input is empty. | _ |
|
| ARIA role for the input. | _ |
|
| Indicates if the input value should be checked for spelling errors. | _ |
|
| Type of the input element. | _ |
|
| Defines the default or current value of the input field. | _ |
|
| Reference to the wrapper FocusContainer element. | _ |