Orbit
TextArea
Source
A multi-line text field for longer free-form input, resizable by default.
Basic
A controlled multi-line field driven by React state.
const [value, setValue] = useState('')
<TextArea
placeholder="Write a message"
value={value}
onChange={(e) => setValue(e.target.value)}
/>Resizing
Resizable by default. Pass resizable={false} to lock the height.
<TextArea placeholder="Resizable (default)" />
<TextArea placeholder="Fixed height" resizable={false} />Disabled
A disabled field cannot be focused or edited.
<TextArea value="This field is read only." disabled />
Props
When false, disables the resize handle and locks the height.
value
stringControlled value.
onChange
(e: ChangeEvent<HTMLTextAreaEle…Called on every keystroke.
placeholder
stringPlaceholder shown when empty.
rows
numberInitial visible number of text lines.
disabled
booleandefault: falsePrevents interaction and dims the field.
className
stringMerged onto the textarea via tailwind-merge.