Input is a primitive single-line text input component that accepts standard HTML attributes and let users enter and edit text.
variant
size
placeholder
isDisabled
1<m placeholder="type here..." />1<Input />npm install @rootui/input1import { Input } from "@rootui/input";
2
3export default function Page() {
4 return (
5 <Input />
6 )
7}See the React Aria documentation for more information.
Prop | Type | Default |
|---|---|---|
| | |
| | |
| | |
An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. | ||
| | |
The type of input to render. | ||
| | |
Hints at the type of data that might be entered by the user while editing the element or its contents. | ||
| | |
An attribute that takes as its value a space-separated string that describes what, if any, type of autocomplete functionality the input should provide. | ||
| | |
An enumerated attribute that defines whether the element may be checked for spelling errors. | ||
| | |
Whether the button is disabled. | ||
| | |
The current value (controlled). | ||
| | |
The default value (uncontrolled). | ||
| | |
Handler that is called when the value changes. | ||
Attribute | Description |
|---|---|
| Whether the input is disabled. |
| Whether the value is invalid. |
| Whether the input is read only. |
| Whether the input is required. |