---
title: "Drawer (BloomDrawer) — Bloom UI Primitive"
description: "A swipeable gesture bottom sheet with drag handle and spring snap points."
category: "Feedback & Overlays"
url: "https://bloom-platform-ten.vercel.app/ui/drawer"
component_name: "BloomDrawer"
pub_package: "bloom_ui"
cli_command: "bloom ui add drawer"
last_updated: "2026-08-15"
---

# Drawer (`BloomDrawer`)

> A swipeable gesture bottom sheet with drag handle and spring snap points.

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

---

## 📦 Installation & Setup

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

### 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
BloomDrawer.show(
  context: context,
  builder: (ctx) => BloomDrawer(
    header: const BloomDrawerHeader(
      title: BloomDrawerTitle('Quick Actions'),
    ),
    child: const Text('Drawer options'),
  ),
)
```

---

## 🛠️ API Reference

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `header` | `Widget?` | *Required* | Drawer top section. |
| `child` | `Widget` | *Required* | Scrollable sheet content. |
| `footer` | `Widget?` | *Required* | Bottom actions. |

---

## 🎨 Theming & Styling

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

---

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