Basic Usage
With Labels
With Initial Value
Disabled State
Reading the Value
Use.rx to get a reactive reference to the textarea’s current text. The .length() pipe returns the character count, which is useful for showing a live counter:
Type into the textarea and the character count updates with each keystroke.
API Reference
Textarea Parameters
Placeholder text shown when the textarea is empty.
Initial value.
State key for the textarea’s current value. Auto-generated if not provided. Use
.rx to reference the textarea’s content in other components without specifying the key explicitly.Number of visible text rows.
Whether the textarea is non-interactive.
Whether the textarea is required for form submission.
Additional Tailwind CSS classes appended to the component’s built-in styles.
Protocol Reference
Textarea