---
title: "Table & Data Table (BloomTable) — Bloom UI Primitive"
description: "A responsive data table container with 40px headers, cell alignment, and sortable columns."
category: "Data Display & AI"
url: "https://bloom-platform-ten.vercel.app/ui/table"
component_name: "BloomTable"
pub_package: "bloom_ui"
cli_command: "bloom ui add table"
last_updated: "2026-08-15"
---

# Table & Data Table (`BloomTable`)

> A responsive data table container with 40px headers, cell alignment, and sortable columns.

**Category:** Data Display & AI  
**Package:** [`bloom_ui`](https://pub.dev/packages/bloom_ui)  
**CLI Install:** `bloom ui add table`  
**Web Preview:** [https://bloom-platform-ten.vercel.app/ui/table](https://bloom-platform-ten.vercel.app/ui/table)

---

## 📦 Installation & Setup

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

### 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
BloomTable(
  rows: [
    TableRow(
      children: const [
        BloomTableHead(child: Text('Invoice')),
        BloomTableHead(child: Text('Status')),
        BloomTableHead(child: Text('Amount')),
      ],
    ),
    TableRow(
      children: const [
        BloomTableCell(child: Text('INV001')),
        BloomTableCell(child: Text('Paid')),
        BloomTableCell(child: Text('$250.00')),
      ],
    ),
  ],
)
```

---

## 🛠️ API Reference

### Sub-Components & Slots

| Sub-Component | Description |
| :--- | :--- |
| `BloomTableHead` | 40px header column cell. |
| `BloomTableCell` | Table body row cell. |

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `rows` | `List<TableRow>?` | *Required* | Structured rows. |

---

## 🎨 Theming & Styling

BloomTable 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: BloomTable(...,
)
```

---

## 🔗 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)
