---
title: "Command Palette (BloomCommandPalette) — Bloom UI Primitive"
description: "Fast, accessible command menu for searching actions, files, and navigation shortcuts."
category: "Composites & Shells"
url: "https://bloom-platform-ten.vercel.app/ui/command-palette"
component_name: "BloomCommandPalette"
pub_package: "bloom_ui"
cli_command: "bloom ui add command_palette"
last_updated: "2026-08-15"
---

# Command Palette (`BloomCommandPalette`)

> Fast, accessible command menu for searching actions, files, and navigation shortcuts.

**Category:** Composites & Shells  
**Package:** [`bloom_ui`](https://pub.dev/packages/bloom_ui)  
**CLI Install:** `bloom ui add command_palette`  
**Web Preview:** [https://bloom-platform-ten.vercel.app/ui/command-palette](https://bloom-platform-ten.vercel.app/ui/command-palette)

---

## 📦 Installation & Setup

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

### 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
BloomCommandPalette(
  items: [
    BloomCommandItem(
      title: 'Deploy to Production',
      shortcut: '⌘P',
      onSelected: () {},
    ),
    BloomCommandItem(
      title: 'Open Settings',
      shortcut: '⌘,',
      onSelected: () {},
    ),
  ],
)
```

---

## 🛠️ API Reference

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `items` | `List<BloomCommandItem>` | *Required* | List of searchable actions. |

---

## 🎨 Theming & Styling

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

---

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