Textarea
Primitives[atlasTextarea]Examples
Basic
atlasTextarea styles a native textarea .
Character count
maxlength caps the text; the count below is linked with aria-describedby , so it is read when the field gets focus instead of being announced on every keystroke.
106 of 160 characters left
Validation in a form field
With Signal Forms and atlas-form-field , the textarea is labelled, described by the hint or the error, and marked invalid, with no ids to wire. novalidate on the form lets these messages replace the browser's own bubbles (Signal Forms also sets the native required and minlength ).
API
Generated from the library source, so it always matches the code.
AtlasTextareaDirective [atlasTextarea]
| Input | Type | Default | Description |
|---|---|---|---|
| class | string | '' | cn() ; yours win on conflicts. |