form

Textarea

Displays a form textarea.

Preview

A preview of the Textarea component with interactive controls.

Preview Code
Interactive

Installation

Add the Textarea component to your project.

Bash
ng g @ng-cn/core:c textarea

Usage

Import and use the Textarea component in your Angular application.

Template TypeScript
template.html
<Textarea placeholder="Type your message here." />

Examples

Explore different variations and use cases for the Textarea component.

Basic

Preview Code
Interactive

With Label

Preview Code
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.