GitHub

Textarea

Multi-line text input with auto-resize, constraints, and model binding.

<rhx-textarea>

Examples

Basic

Hint and Maxlength

Max 500 characters

Auto-resize

Sizes

States

htmx Integration

Write a comment and click submit...

Properties

Property Type Default Description
rhx-for ModelExpression - ASP.NET Core model expression for two-way binding
name string - The form field name
value string - The current value
rhx-label string - Label text displayed above the textarea
rhx-hint string - Hint text displayed below the textarea
rhx-size string medium Textarea size: small, medium, large
rhx-disabled bool false Whether the textarea is disabled
rhx-readonly bool false Whether the textarea is read-only
rhx-required bool false Whether the field is required
rhx-placeholder string - Placeholder text
rhx-rows int? - Number of visible text rows
rhx-resize string vertical Resize behavior: vertical, horizontal, auto, none
rhx-maxlength int? - Maximum character length
rhx-filled bool false Use filled appearance

Accessibility

  • Renders a native <textarea> element with associated <label>.
  • rhx-hint is linked via aria-describedby.
  • Required state is conveyed with aria-required.
  • Disabled state sets aria-disabled.