---
title: "Input (BloomInput) — Bloom UI Primitive"
description: "Displays a 32px height calibrated form input field or a component that looks like an input field."
category: "Form Controls"
url: "https://bloom-platform-ten.vercel.app/ui/input"
component_name: "BloomInput"
pub_package: "bloom_ui"
cli_command: "bloom ui add input"
last_updated: "2026-08-15"
---

# Input (`BloomInput`)

> Displays a 32px height calibrated form input field or a component that looks like an input field.

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

---

## 📦 Installation & Setup

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

### 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
BloomInput(
  placeholder: 'name@example.com',
  leading: const Icon(Icons.email_outlined, size: 16),
  keyboardType: TextInputType.emailAddress,
  onChanged: (val) {
    print('Email: $val');
  },
)
```

---

## 🛠️ API Reference

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `placeholder` | `String?` | *Required* | Hint placeholder text. |
| `controller` | `TextEditingController?` | *Required* | Text editing controller. |
| `obscureText` | `bool` | `false` | Hides text for password inputs. |
| `leading` | `Widget?` | *Required* | Leading icon or addon. |
| `trailing` | `Widget?` | *Required* | Trailing icon or action button. |
| `label` | `String?` | *Required* | Optional field label. |
| `error` | `String?` | *Required* | Validation error text. |

---

## 🎨 Theming & Styling

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

---

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