Components · Forms · Text Area
Back to Text Area typesText Area
Use for collecting multiple lines of free-form text, like a comment, a description, or a message.
Properties
Size, corner radius, label, placeholder and rows are properties of the same component, not separate fields - change them below to check this field's style and states in the Live Preview.
Live Preview
All 3 types compared side by side, each in all 6 states. One full matrix is rendered per selected combination of Size and Corner radius - check more than one option in a dropdown to see every combination side by side.
When to use
Any form field that collects multiple lines of free-form text - comments, feedback, a bio, a description, or a message.
Validation
Text Area's validation is mostly about length - a live counter that warns before it blocks, plus the same required-on-blur handling as any other text field.
- Required marking - mark a required Text Area the same way as any other required field in this system (red asterisk after the label), and validate emptiness on blur or submit, same as Input.
- Character counter - show a live, non-error counter ("420 / 500") that only switches to a warning color once the value is near or over the limit. Prefer this over a hard block at the limit: stopping keystrokes outright feels broken to a user who doesn't notice why the field stopped responding, whereas a counter that turns red still lets them see the overage and fix it themselves.
- Error message - state the specific shortfall or overage: "Add at least 20 characters" or "You're 40 characters over the limit," never a generic "Invalid input."
Component Guide
Overview
Text Area is the multi-line counterpart to Input - a resizable or fixed-height box for collecting free-form text that spans more than one line, like a comment, a bio, or a longer message body.
When to Use
- Any multi-line free-form text - comments, feedback, a bio, a message.
- A description field - where the length genuinely varies and a single line would be too cramped.
- Content the user is composing rather than briefly answering - a longer note or explanation.
When Not to Use
- A single short line of text - use Input - a Text Area for a name or email adds unnecessary height and visual weight.
- A value with an expected fixed format - email, phone, URL - use Input or Add-on so the format can be validated inline.
- Text that needs an embedded suggestion or mention picker - use Mention or Autocomplete instead.
Best Practices
- Give it a sensible default height for the expected content length, rather than always starting cramped or oversized.
- Show a character counter when there's a maximum length, so users aren't surprised by truncation on submit.
- Allow vertical resizing when the content length is unpredictable, so users can expand it themselves.
Do and Don't
Do
Markdown supported.
Sized for the length of answer actually expected, so the user can see what they have written without scrolling a two-line box.
Don't
A multi-line box for a one-line answer invites line breaks into a value that cannot contain them. Use Input for anything that fits on one line.
Accessibility
- The label is programmatically associated with the textarea, just like Input.
- A character limit and remaining-count are announced to assistive technology as the user types, not only shown visually.
- Focus state uses a visible outline distinct from the field's default border.
Related Components
Input, Mention, Password.
{
"component": "Text Area",
"category": "Forms",
"summary": "Text Area is the multi-line counterpart to Input - a resizable or fixed-height box for collecting free-form text that spans more than one line, like a comment, a bio, or a longer message body.",
"whenToUse": [
"Any multi-line free-form text - comments, feedback, a bio, a message.",
"A description field - where the length genuinely varies and a single line would be too cramped.",
"Content the user is composing rather than briefly answering - a longer note or explanation."
],
"whenNotToUse": [
"A single short line of text - use Input - a Text Area for a name or email adds unnecessary height and visual weight.",
"A value with an expected fixed format - email, phone, URL - use Input or Add-on so the format can be validated inline.",
"Text that needs an embedded suggestion or mention picker - use Mention or Autocomplete instead."
],
"bestPractices": [
"Give it a sensible default height for the expected content length, rather than always starting cramped or oversized.",
"Show a character counter when there's a maximum length, so users aren't surprised by truncation on submit.",
"Allow vertical resizing when the content length is unpredictable, so users can expand it themselves."
],
"doAndDont": {
"do": "Sized for the length of answer actually expected, so the user can see what they have written without scrolling a two-line box.",
"dont": "A multi-line box for a one-line answer invites line breaks into a value that cannot contain them. Use Input for anything that fits on one line."
},
"accessibility": [
"The label is programmatically associated with the textarea, just like Input.",
"A character limit and remaining-count are announced to assistive technology as the user types, not only shown visually.",
"Focus state uses a visible outline distinct from the field's default border."
],
"relatedComponents": [
"Input",
"Mention",
"Password"
]
}