Skip to content
Eskais UI

Forms

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.

Installation

npx shadcn@latest add @eskais/textarea
Brings alongfieldinput

Usage

Import
import { Textarea, createInputController } from "@/components/ui/textarea"

API reference

Other exports

createInputControllertype InputControllertype TextareaState

Accessibility

  • 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.