Lumeo

Textarea

Displays a form textarea for multi-line text input.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Textarea />

When to Use

  • Multi-line text input for comments, descriptions, or messages
  • Bio or "about" fields in profile and settings forms
  • Code or JSON input fields that benefit from multiple visible rows
  • Any form field where the expected input spans more than one line

Character count: 0

You can use markdown for formatting.

Show character counter

0/200

Toggle ShowCount on to see the in-field counter. MaxLength caps the input at 200 characters.

Pick a Resize value to control where the drag handle appears.

API Reference

Textarea

Prop Type Default Description
Valuestring?nullThe current value of the textarea.
OnInputEventCallback<ChangeEventArgs>-Callback invoked on every keystroke as the value changes.
DisabledboolfalseDisables the textarea.
AutoResizeboolfalseAutomatically resize the textarea based on content.
MaxRowsint10Maximum number of rows when auto-resizing.
ValueChangedEventCallback<string?>-Two-way binding callback; fires when the value changes.
ResizeTextareaResizeVerticalControls the CSS resize handle. Values: None, Vertical, Horizontal, Both.
MaxLengthint?nullMaximum number of characters allowed.
ShowCountboolfalseDisplays an in-field character counter (uses MaxLength when provided).
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes (e.g. placeholder, rows).
Labelstring?nullVisible label rendered above the textarea.
HelperTextstring?nullHelper text shown beneath the textarea when valid.
ErrorTextstring?nullError message shown beneath the textarea when invalid.
InvalidboolfalseMarks the textarea as invalid and shows the error styling.
RequiredboolfalseMarks the textarea as required for form submission.
Namestring?nullHTML name attribute used by native form submission.
  • Input — Single-line text input for shorter values
  • Form — Wrap Textarea with labels, validation, and help text