Textarea
Textarea
Section titled “Textarea”Category: Forms & inputs
<Textarea label="Bio" placeholder="A short bio…" rows={6} />Install: @helix-ui/core
import { Textarea } from '@helix-ui/core';status: stable · since: 0.1.0
Tags: multi-line, input, text
Live playground
Section titled “Live playground”Open the full editor or source on GitHub.
Anatomy
Section titled “Anatomy”Label┌──────────────────────────┐│ ││ multi-line input ││ │└──────────────────────────┘Help / errorLayout
Section titled “Layout”- display —
block - width —
fill - height —
content - intrinsicSize —
fills width, default 4 rows - stackable —
true - fullBleed —
false
Visual
Section titled “Visual”A multi-line text input wrapped with built-in label, description, and error message. Resizable vertically by default.
| Name | Type | Default | Description |
|---|---|---|---|
label |
ReactNode |
— | Visible label. |
description |
ReactNode |
— | Helper text. |
errorMessage |
string | (v: ValidationResult) => string |
— | Error message. |
placeholder |
string |
— | Placeholder. |
rows |
number |
4 |
Initial visible rows. |
resize |
'none' | 'vertical' | 'horizontal' | 'both' |
vertical |
User resize affordance. |
...rest |
TextFieldProps |
— | Forwarded to react-aria’s TextField. |
Tokens used
Section titled “Tokens used”color.bg.surface.default, color.bg.surface.muted, color.border.default, color.border.focus, color.border.danger, color.text.primary, color.text.secondary, color.text.muted, color.text.action.danger, radius.md, space.2, space.3, font.family.sans, font.size.sm, font.size.md, font.weight.medium, font.lineHeight.normal
Accessibility
Section titled “Accessibility”Notes
- Built on react-aria-components TextField.
Composes with
Section titled “Composes with”| Component | Relation | Note |
|---|---|---|
Form |
parent |
Inside Form. |
TextInput |
alternative |
TextInput for single-line. |
RichTextEditor |
alternative |
RichTextEditor for formatted content. |
Field |
sibling |
Prompt examples
Section titled “Prompt examples”These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.
comment box
Section titled “comment box”“multi-line comment input”
<Textarea label="Comment" rows={4} value={c} onChange={setC} />