Skip to main content
  1. Docs
  2. Components
  3. Forms

Textarea

Several lines, with the Input look. It grows with its content, and no script measures it.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<textarea>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A note, a reason, an address: text that runs to lines.
  • Anything where a line break is part of the answer.
Not for

02

Anatomy

  1. 1field-label<label>Names it, from the Field around it.
  2. 2textarea<textarea>The box: Input's surface and bottom line, between rows and maxRows tall.
  3. 3field-description<p>A limit or a hint; the error takes its place.

03

Do and don't

Sized for the answer
Dorows for the usual length; it grows from there.
Don'tOne row for a reason, or a page for a name.

04

Content

  • Say a limit before it's reached: "Up to 200 characters."
  • Placeholders are examples, starting "e.g.".
Next — TextareaAPI