Textarea
Displays a form textarea.
Preview
A preview of the Textarea component with interactive controls.
Interactive
Installation
Add the Textarea component to your project.
ng g @ng-cn/core:c textareaUsage
Import and use the Textarea component in your Angular application.
<Textarea placeholder="Type your message here." />Examples
Explore different variations and use cases for the Textarea component.
Basic
Interactive
With Label
Interactive
API Reference
Props | Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | — | Placeholder text. |
disabled | boolean | false | Whether the textarea is disabled. |
class | string | — | Additional CSS classes to apply. |