Examples
- Basic Usage
- Keyboard Shortcuts
- States

Basic text area with different configurations and features.
Properties
Required
The controller for managing the text content of the text area.
Content
Optional label text displayed above the text area.
Hint text displayed when the text area is empty.
Optional helper text displayed below the text area. Hidden when
errorText
is present.Error message displayed below the text area. Takes priority over
description
.List of input formatters to control text input behavior (e.g., length limits, character restrictions).
Hints for autofill services.
Layout
Minimum number of lines to display.
Maximum number of lines for auto-sizing.
Maximum number of lines when manually resized. Set to null for unlimited resizing.
Whether to show the resize handle for manual height adjustment.
Double-tap the resize handle to reset to auto-sizing mode.
Behavior
Callback triggered when the text content changes.
Callback triggered when text is submitted via keyboard shortcuts.
Controls keyboard submission behavior:
true
: Enter submits, Shift+Enter adds new line (chat-style)false
: Cmd/Ctrl+Enter submits, Enter adds new line (editor-style)
Whether to keep focus on the text area after submission.
State
Controls whether the text area is interactive. When disabled, the field appears dimmed and prevents all interaction.
Optional focus node for advanced focus management. If not provided, an internal focus node is created.
Best Practices
- Use appropriate line limits: Set
minLines
andmaxLines
based on expected content length - Use chat-style submission for messaging: Set
submitOnEnter: true
withmaintainFocusOnSubmit: true
for chat interfaces. You would also probably want to setminLines
to1
.