Back to components

Textarea

zyra-textarea

Multi-line text input with auto-resize, size variants, and full ZyraFormField integration for labels and validation.

API

All inputs and configuration options for zyra-textarea.

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Font and spacing scale
rowsnumber3Initial visible rows
placeholderstring''Placeholder text
resize'none' | 'vertical' | 'auto''vertical'Resize behaviour
maxlengthnumbernullNative maxlength attribute
readonlybooleanfalseMakes the textarea read-only
disabledboolean (Angular Forms)falseDisabled state via CVA — use formControl.disable() or [disabled]="true" on template-driven ngModel

Accessibility

Built to meet WCAG 2.0 AA. These notes cover the key ARIA, keyboard, and interaction behaviours.

  • Always pair with ZyraFormField or a native <label> for accessible labelling
  • Character counter in ZyraFormField is linked via aria-describedby