# Textarea
> Multi-line text input component with two-way binding.
Source: https://shellui.dev/docs/v0.4/components/form/textarea
The Textarea component provides a multi-line text input for longer content like descriptions, comments, or messages.
## Installation
```bash
shellui add textarea
```
## Usage
### Basic
```razor
```
### With Label
```razor
Message
```
### Two-way Binding
```razor
@code {
private string message = "";
}
```
### ValueChanged Callback
```razor
@code {
private string message = "";
private void HandleChanged(string value)
{
message = value;
}
}
```
### Disabled and ReadOnly
```razor
```
### With Character Count
```razor
@message.Length / 500 characters
@code {
private string message = "";
}
```
## API Reference
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `Variant` | `InputVariant` | `Default` | `Default` or `Error`, as on [Input](https://shellui.dev/docs/v0.4/components/form/input.md#error) |
| `Value` | `string` | `""` | Current textarea value |
| `Placeholder` | `string` | `""` | Placeholder text |
| `Disabled` | `bool` | `false` | Disables the textarea |
| `ReadOnly` | `bool` | `false` | Makes textarea read-only |
| `Class` | `string?` | `null` | Additional CSS classes |
| `ValueChanged` | `EventCallback` | — | Fires when value changes |
| `OnFocus` | `EventCallback` | — | Fires when the textarea gains focus |
| `OnBlur` | `EventCallback` | — | Fires when the textarea loses focus |
The CLI template has `Variant`, `ReadOnly`, `OnFocus` and `OnBlur` from 0.4.0-alpha.3; its styles come from the `textarea-variants` template, installed with it.
## Accessibility
- Proper label association via `For` / `Id` attributes
- Keyboard navigation support
- Screen reader compatible