On this page

Textarea

Use the textarea component for multi-line text input form fields.
  • Experimental
  • Not reviewed for accessibility
On this page
import {Textarea} from '@primer/react'

Examples

Textarea components must always be accompanied by a corresponding label to improve support for assistive technologies. Examples below are provided for conciseness and may not reflect accessibility best practices.

Use the FormControl component to render a Textarea with a corresponding label.

Controlled mode

Uncontrolled mode