---
title: "Field (BloomField) — Bloom UI Primitive"
description: "A complete composable form field wrapper providing FieldLabel, FieldDescription, and FieldError slots."
category: "Form Controls"
url: "https://bloom-platform-ten.vercel.app/ui/field"
component_name: "BloomField"
pub_package: "bloom_ui"
cli_command: "bloom ui add field"
last_updated: "2026-08-15"
---

# Field (`BloomField`)

> A complete composable form field wrapper providing FieldLabel, FieldDescription, and FieldError slots.

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

---

## 📦 Installation & Setup

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

### 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
BloomField(
  label: const BloomFieldLabel('Email Address', required: true),
  child: const BloomInput(placeholder: 'alex@example.com'),
  description: const BloomFieldDescription('We will never share your email.'),
)
```

---

## 🛠️ API Reference

### Sub-Components & Slots

| Sub-Component | Description |
| :--- | :--- |
| `BloomFieldGroup` | Groups multiple adjacent fields. |
| `BloomFieldLabel` | Accessible label text with optional required marker. |
| `BloomFieldDescription` | Muted explanatory helper text. |
| `BloomFieldError` | Validation error text displayed below input. |

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `label` | `Widget?` | *Required* | Label slot. |
| `child` | `Widget` | *Required* | Form input control widget. |
| `description` | `Widget?` | *Required* | Helper description slot. |
| `error` | `Widget?` | *Required* | Error message slot. |

---

## 🎨 Theming & Styling

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

---

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