# Textarea

> Multi-line field input, vertical-resize only, reuses the Field's input tokens.

- Group: Forms
- Status: stable
- HTML page: https://design.ipmnx.com/components/textarea/
- Spec: https://design.ipmnx.com/design/#nx-textarea

## Preview

**Note**

```html
<label class="nx-field">
  <span class="nx-field__label">Note</span>
  <textarea class="nx-field__input"
      placeholder="Add a note…"></textarea>
</label>
```

```tsx
<label className="nx-field">
  <span className="nx-field__label">Note</span>
  <NxTextarea placeholder="Add a note…" />
</label>
```

## API

### Classes

| Class | Description |
| --- | --- |
| `textarea.nx-field__input` | min-height 88px, vertical resize only |

## Accessibility

- Same labelling contract as Field: wrap in a `<label>` or pair aria-label/aria-labelledby.

## Do / Don't

- Do: Let it grow vertically only (resize:vertical).
- Don't allow horizontal resize. It breaks the field grid.

## Related

- [Field](https://design.ipmnx.com/components/field.md)

---

Source: registry.js (NX Design System)
