---
title: "Textarea (BloomTextarea) — Bloom UI Primitive"
description: "Multi-line expanded text input for paragraphs, descriptions, or code prompts."
category: "Form Controls"
url: "https://bloom-platform-ten.vercel.app/ui/textarea"
component_name: "BloomTextarea"
pub_package: "bloom_ui"
cli_command: "bloom ui add textarea"
last_updated: "2026-08-15"
---

# Textarea (`BloomTextarea`)

> Multi-line expanded text input for paragraphs, descriptions, or code prompts.

**Category:** Form Controls  
**Package:** [`bloom_ui`](https://pub.dev/packages/bloom_ui)  
**CLI Install:** `bloom ui add textarea`  
**Web Preview:** [https://bloom-platform-ten.vercel.app/ui/textarea](https://bloom-platform-ten.vercel.app/ui/textarea)

---

## 📦 Installation & Setup

### 1. Using Bloom CLI (Recommended)
Add the source code directly to your project without rigid package locks:
```bash
bloom ui add textarea
```

### 2. Using Pub.dev Package
Add the dependency to your `pubspec.yaml`:
```yaml
dependencies:
  bloom_ui: ^0.1.0
```

### 3. Import in Dart
```dart
import 'package:bloom_ui/bloom_ui.dart';
```

---

## 🚀 Usage Example

```dart
BloomTextarea(
  placeholder: 'Type your message or system instructions here...',
  minLines: 4,
  onChanged: (val) {},
)
```

---

## 🛠️ API Reference

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `minLines` | `int` | `3` | Minimum visible lines. |
| `placeholder` | `String?` | *Required* | Placeholder hint text. |
| `controller` | `TextEditingController?` | *Required* | Text editing controller. |

---

## 🎨 Theming & Styling

BloomTextarea automatically respects the active `BloomTheme` (including `BloomTheme.novaLight`, `BloomTheme.novaDark`, etc.) and responds seamlessly to dark mode changes, custom border radii, and brand color tokens.

### Theme Overrides Example
```dart
Theme(
  data: Theme.of(context).copyWith(
    extensions: [
      context.bloomTheme.copyWith(
        colors: context.bloomColors.copyWith(
          primary: const Color(0xFF8B5CF6), // Custom Purple Accent
        ),
      ),
    ],
  ),
  child: BloomTextarea(...,
)
```

---

## 🔗 Related Resources
- [Components Gallery](https://bloom-platform-ten.vercel.app/ui)
- [Bloom Theming & Tokens Guide](https://bloom-platform-ten.vercel.app/docs/theming)
- [Application Blocks Catalog](https://bloom-platform-ten.vercel.app/blocks)
- [Bloom CLI Master Overview](https://bloom-platform-ten.vercel.app/docs/cli)
