• Docs
  • Components
  • Textarea

Textarea - Aspect UI

The Textarea component provides a multi-line text input for user-generated content. It supports resizing, character limits, validation, and accessibility features.

Table of Contents#

Textarea Props#


PropTypeDefaultDescription
labelstring-Label text displayed above the textarea.
errorstring-Error message displayed below the textarea.
classNamestring''Additional CSS class for the textarea element.
labelClassNamestring''Additional CSS class for the label element.
wrapperClassNamestring''Additional CSS class for the textarea wrapper container.
errorClassNamestring''Additional CSS class for the error message element.
...restReact.TextareaHTMLAttributes<HTMLTextAreaElement>-Any other native textarea attributes such as placeholder, rows, etc.