Textarea
Native textarea directive for Frakton fields. Use textarea[fktTextarea] inside fkt-field when the user needs a multi-line text control with field state integration, auto-expand, and optional character count support.
Import
import {FktTextareaDirective} from "frakton-ng/textarea";Composition
Textarea composition patterns. The textarea directive owns the native multiline control state,
while fkt-field owns label, outline, hint, error, density, prefix/suffix, and supporting text.
Basic
Basic usage with textarea[fktTextarea] projected into fkt-field. Native textarea attributes
such as rows, placeholder, spellcheck, readonly, and disabled stay on the native element.
Markdown support depends on the consumer application.
Auto expand
Auto-expand keeps the field compact initially and grows the textarea vertically as content wraps or new lines are added. Use this for comments, notes, descriptions, and support messages.
Character count
Character count is provided by fktCharacterCount. The directive reads the max length from the
same normalized field state used by input text, so Signal Forms, Reactive Forms, and native
maxlength can share the same field supporting UI.
Forms
Form integration examples. The textarea directive participates in the same FktFieldControl
contract as input text, so the field can react to value, focused, disabled, touched, invalid,
required, errors, and max length without manual state forwarding.
Signal forms
Signal Forms integration through Angular's [formField] directive. Validation state, disabled state,
required marker, and max length are read from the projected control.
Reactive forms
Reactive Forms integration through formControlName. The field reacts to programmatic updates,
reset, disabled state, and validation changes from the Angular control.