TextArea

The ArcadiaTextArea component wraps a native <textarea> with label, character count, helper text, and error message support.

Basic Usage

<ArcadiaTextArea @bind-Value="description"
                 Label="Description"
                 Placeholder="Enter a description..."
                 Rows="5" />

<ArcadiaTextArea @bind-Value="bio"
                 Label="Biography"
                 MaxLength="500"
                 ShowCount="true"
                 HelperText="Tell us about yourself." />

<ArcadiaTextArea @bind-Value="comment"
                 Label="Comment"
                 ErrorText="Comment is required." />

Parameters

ParameterTypeDefaultDescription
Valuestring?nullThe text value. Supports two-way binding.
Placeholderstring?nullPlaceholder text.
Labelstring?nullLabel text displayed above the textarea.
Rowsint4Number of visible text rows.
MaxLengthint?nullMaximum number of characters allowed.
ShowCountboolfalseWhether to show the character count.
DisabledboolfalseWhether the textarea is disabled.
AutoResizeboolfalseWhether the textarea auto-resizes with content.
HelperTextstring?nullHelper text displayed below the textarea.
ErrorTextstring?nullError text displayed below. Takes precedence over helper text.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Events

EventTypeDescription
ValueChangedEventCallback<string?>Fired when the text value changes.

Accessibility

  • The <label> is linked to the textarea via for/id.
  • Uses aria-label derived from Label or Placeholder.
  • Uses aria-describedby to link the textarea to helper text or error text.
  • When an error is present, sets aria-invalid="true".