Textarea

The Text Area component allow user to type in longer content.

DetailsProperties

Introduction

Similar to text inputs, Evergreen exports two components to create text areas:

  • Textarea: base text area component. Directly maps to a textarea element.
  • TextareaField: combines a label, textarea and validation message in one. Used for traditional forms.

Textarea with a label

Controlled usage

The Textarea component works the same as using textarea directly. Use e.target.value to get the value of the component on change.

TextareaField

The TextareaField component combines a Textarea with a label and optional description, validationMessage and hint. The example below shows how each of these fields is rendered on the text field. Try opening the code example and changing some of the fields.

Label and description

This is a description.

This is a hint. It's rendered under the textarea

Controlled usage

The TextareaField component works the same as using textarea directly. Use e.target.value to get the value of the component on change.

This is a description.