Skip to content

Textarea

Primitives

A consistently styled multi-line text field.

[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 ).

At least 20 characters, so we can reproduce it.

API

Generated from the library source, so it always matches the code.

AtlasTextareaDirective [atlasTextarea]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.