Textarea overview
TailNG exposes textarea as a layered pair: use textarea[tngTextarea] for the headless primitive, then reach for <tng-textarea> when you want the default component styling and controlled-value API.
Imports
Choose the primitive or styled layer based on how much rendering and styling you want to own.
Primitive imports
ts
import { TngInputGroup, TngTextarea } from '@tailng-ui/primitives';
Component import
ts
import { TngTextareaComponent } from '@tailng-ui/components';
Textarea variants
Compare the same textarea component rendered inside a plain CSS wrapper and a Tailwind utility shell.
Plain CSS textarea stack
value: Add concise release highlights for the weekly digest.
Tailwind textarea stack
value: Ship notes in both plain language and changelog format.
Behavior baseline
- The underlying textarea keeps native editing, selection, and IME composition behavior.
rowsis normalized to at least1on both the primitive and the component.resizeacceptsvertical,horizontal,both, ornone.<tng-textarea>renders an internal native textarea that already carries the shared input contract plus textarea-specific rows and resize behavior.