---
title: "Calendar (BloomCalendar) — Bloom UI Primitive"
description: "A date picker calendar component supporting single, range, and multiple date selections."
category: "Form Controls"
url: "https://bloom-platform-ten.vercel.app/ui/calendar"
component_name: "BloomCalendar"
pub_package: "bloom_ui"
cli_command: "bloom ui add calendar"
last_updated: "2026-08-15"
---

# Calendar (`BloomCalendar`)

> A date picker calendar component supporting single, range, and multiple date selections.

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

---

## 📦 Installation & Setup

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

### 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
BloomCalendar.single(
  initialDate: DateTime.now(),
  onDaySelected: (date) {
    print('Selected date: $date');
  },
)
```

---

## 🛠️ API Reference

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | `BloomCalendarMode` | `single` | Selection mode: single or range. |
| `initialDate` | `DateTime?` | *Required* | Initial selected date. |
| `onDaySelected` | `ValueChanged<DateTime>?` | *Required* | Callback when day is tapped. |

---

## 🎨 Theming & Styling

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

---

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