Textarea

free

Multi-line text input with auto-resize, character counter, and length validation.

Overview

The Textarea handles longer text input like messages, descriptions, and feedback. Supports auto-resize that grows with content, a character counter display, and the same built-in/regex validation as the Text Input.

Properties

PropertyTypeDefaultDescription
nameString"message"Field name used in form data.
labelString"Message"Label displayed above the textarea.
placeholderString"Message"Placeholder text.
requiredBooleanfalseWhether the field must be filled.
rowsNumber4Number of visible text rows. Hidden when auto-resize is on.
autoResizeBooleanfalseAutomatically grow/shrink height based on content.
autoResizeMinHeightNumber100Minimum height in pixels when auto-resize is on.
autoResizeMaxHeightNumber--Maximum height before scroll appears. Hidden when auto-resize is off.
showCharCountBooleanfalseShow character count (e.g., "45/200") next to the label.

Features

  • Auto-resize that grows/shrinks with content
  • Configurable min/max height for auto-resize
  • Character counter display (count/maxLength)
  • Built-in or regex pattern validation
  • Vertical resize handle (when auto-resize is off)

Tips

Enable auto-resize for a polished UX — the textarea grows as users type.
The character counter only shows when using built-in validation with a maxLength set.
Set autoResizeMaxHeight to prevent the textarea from growing beyond a certain height.

Validation

This component uses text validation. See the Validation Guide for details on configuring rules and error messages.

Related components