Textarea

Textarea with optional auto-resize, character counter, validation and auto-submit

View documentation

auto-resize

Same auto-derivation, old() merge and ARIA wiring as hw:input. auto-resize grows the box as the content changes and shrinks it back when text is deleted.

Grows as you type.

Plain textarea, no controllers.

Character counter

:counter places a live counter inside the control's frame and sets maxlength. countdown shows remaining characters instead of characters used.

0/120
0/280

Custom counter markup

The counter-slot slot replaces the default readout — not counter, which is the prop name and would land its markup in maxlength. Keep data-char-counter-target="counter" on the element the controller should write into.

left

auto-submit

Textareas debounce like text inputs. The control's delay overrides the form-level one.

Last submitted draft: —