Textarea
Lets the user enter several lines of text.
01Anatomy
7 parts. Select a number or a name to see what each part does.
01 · Label
Names the field and stays visible while the user writes.
- Required
- Yes
- Recommended
- Say what to write, like “Notes for the courier”, not just “Message”.
02 · Field
The box that receives the text. Its height says how much is expected.
- Required
- Yes
- Recommended
- Common pattern: start at 3 to 5 lines. One line looks like a text input and invites short answers.
03 · Input text
The text the user writes. It wraps onto new lines; Enter adds a line break instead of sending the form.
- Required
- Yes
- Recommended
- Body size, at least 16 px on phones, or iOS zooms in when the field gets focus.
04 · Resize handle
The corner to drag to make the field taller.
- Required
- No
- When
- When the field has a fixed height. Not needed when it grows by itself.
- Recommended
- Let it resize vertically only, so it never breaks the layout sideways.
05 · Helper text
Short guidance under the field: what to include, length, format.
- Required
- No
06 · Character counter
Shows how many characters are used out of the limit.
- Required
- Only in some cases
- When
- Only when there is a real limit.
- Recommended
- Let people type past the limit and flag it, instead of cutting the text: pasted text disappears silently otherwise.
07 · Error message
Says what is wrong and how to fix it. It takes the place of the helper text.
- Required
- Only in some cases
- When
- Only when validation fails.
- Recommended
- Name the rule: “Write at most 200 characters”, not “Invalid value”.
Shares its area with Helper text.
Example spacing, measured on this drawing (16 px = 1 em). A common implementation, not a rule: values change from system to system. W and H are width and height, as in Figma: Hug follows the content, Fill takes the space of the parent.
Spacing is measured on the normal view: switch back to Normal to show it.
02Structure
- Textareacomponent setauto layoutverticalgap 8
- Labeltext
- Fieldauto layoutverticalfillmin H 88padding V 10H 12
- Valuetextfillauto height
- Resize handlevectorabsoluteboolean
- Footerauto layouthorizontalfillspace between
- Helper texttextfillboolean
- Countertexthugboolean
| Property | Type | Values |
|---|---|---|
| State | Variant | EmptyHoverFocusFilledDisabledRead-onlyError |
| Height | Variant | ResizableAuto-growScroll |
| Counter | Boolean | truefalse |
| Helper text | Boolean + Text | “Up to 200 characters.” |
| Value | Text | “Bring the printed specs…” |
Set the Value text to auto height: in Figma the Field then grows with it, like Auto-grow in the browser.
03States
04Variants
There is no single correct anatomy: names, variants and properties differ from one design system to another. These are common structural models distilled from established design systems and accessibility guidance.
Proven methods for designing interfaces with AI. Every two weeks, in Italian.
Subscribe