Skip to content

Search Feitio

↵ opens the first↑↓ chooseEsc closes

Textarea

A multi-line field for free text: a description, an instruction, a note.

On this page

Playground

State
Background
HTML
<div class="feitio-field"><label class="feitio-label" for="pg-ta">Note</label><textarea class="feitio-textarea" id="pg-ta" rows="3">Remind me to replace the catalog photos.</textarea></div>

When to use

When not to use

Examples

NoteUp to 500 characters

A note

The character limit, when there is one, comes in the hint beforehand, not only once exceeded.

Show code
HTML
<div class="feitio-field">
  <label class="feitio-label" for="nota">Nota</label>
  <span class="feitio-hint" id="nota-dica">Até 500 caracteres</span>
  <textarea class="feitio-textarea" id="nota" rows="3" aria-describedby="nota-dica"></textarea>
</div>

States

Empty, with placeholder
Filled
Focus
Error
Use up to 500 characters
Disabled

Accessibility

Attributes

AttributeValuesWhat for
class="feitio-textarea"requiredThe field’s shape.
rowsnumberThe initial height.
aria-invalid="true"with an errorThe wine line.
Top