Textarea
UI SDK Textarea: multi-line field with auto resize and a submit shortcut, labelled by Field.
Example
Grows with its text, up to a limit.
textarea-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
Textarea
Other exports
createInputControllertype InputControllertype TextareaStateAccessibility
- autoResize grows with the text; a submit shortcut can be added for chat-like inputs.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.