---
title: "Radio Group (BloomRadioGroup) — Bloom UI Primitive"
description: "A set of 16px circular check buttons where only one button can be checked at a time."
category: "Form Controls"
url: "https://bloom-platform-ten.vercel.app/ui/radio"
component_name: "BloomRadioGroup"
pub_package: "bloom_ui"
cli_command: "bloom ui add radio"
last_updated: "2026-08-15"
---

# Radio Group (`BloomRadioGroup`)

> A set of 16px circular check buttons where only one button can be checked at a time.

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

---

## 📦 Installation & Setup

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

### 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
BloomRadioGroup<String>(
  defaultValue: 'starter',
  options: const [
    BloomRadioOption(value: 'starter', label: Text('Starter Plan ($0/mo)')),
    BloomRadioOption(value: 'pro', label: Text('Pro Plan ($29/mo)')),
    BloomRadioOption(value: 'enterprise', label: Text('Enterprise (Custom)')),
  ],
  onChanged: (plan) {
    print('Selected plan: $plan');
  },
)
```

---

## 🛠️ API Reference

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `options` | `List<BloomRadioOption<T>>` | *Required* | List of radio options. |
| `defaultValue` | `T?` | *Required* | Currently selected value. |
| `onChanged` | `ValueChanged<T>?` | *Required* | Callback when selected option changes. |

---

## 🎨 Theming & Styling

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

---

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