---
title: "Slider (BloomSlider) — Bloom UI Primitive"
description: "A 4px track slider with 12px white ring thumb for selecting values from a range."
category: "Form Controls"
url: "https://bloom-platform-ten.vercel.app/ui/slider"
component_name: "BloomSlider"
pub_package: "bloom_ui"
cli_command: "bloom ui add slider"
last_updated: "2026-08-15"
---

# Slider (`BloomSlider`)

> A 4px track slider with 12px white ring thumb for selecting values from a range.

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

---

## 📦 Installation & Setup

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

### 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
BloomSlider(
  value: 0.75,
  min: 0.0,
  max: 1.0,
  onChanged: (v) {
    print('Volume: $v');
  },
)
```

---

## 🛠️ API Reference

### Properties & Parameters

| Prop | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `value` | `double` | *Required* | Current value (0.0 to 1.0). |
| `onChanged` | `ValueChanged<double>?` | *Required* | Callback when sliding. |
| `min` | `double` | `0.0` | Minimum slider bound. |
| `max` | `double` | `1.0` | Maximum slider bound. |

---

## 🎨 Theming & Styling

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

---

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