---
title: "Fluid Slider"
description: "Free React slider with no thumb: the fill slides behind a rounded liquid cap and the label flips color where the fill covers it. Keyboard accessible, shadcn."
category: "Components"
parent: "https://beui.dev/components/motion/range-slider"
publishedAt: "2026-06-24"
updatedAt: "2026-11-25"
documentation: "https://beui.dev/components/motion/range-slider/fluid"
markdown: "https://beui.dev/components/motion/range-slider/fluid.md"
license: "MIT"
---

# Fluid Slider

> Free React slider with no thumb: the fill slides behind a rounded liquid cap and the label flips color where the fill covers it. Keyboard accessible, shadcn.

## Install

```bash
npx shadcn@latest add @beui/range-slider-fluid
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

### Fluid Slider usage

No thumb. The fill slides behind a rounded liquid cap, and the label flips color wherever the fill covers it.

```tsx
"use client";

import { useState } from "react";

import { FluidSlider } from "@/components/motion/range-slider-fluid";

export function RangeSliderFluidPreview() {
  const [value, setValue] = useState(35);

  return (
    <div className="w-full max-w-sm">
      <FluidSlider
        sound
        value={value}
        onValueChange={setValue}
        label="Brightness"
        aria-label="Brightness"
      />
    </div>
  );
}
```

## API Reference

### FluidSlider

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `label` | `string` | — | No | Text shown on the left of the track. |
| `format` | `((value: number) => string)` | `(v) => `${v}%`` | No | Formats the value shown on the right. |
| `className` | `string` | — | No | Classes merged onto the slider track, the root element. |
| `value` | `number` | — | No | The current value, for controlled use. |
| `defaultValue` | `number` | — | No | The initial value when uncontrolled. Default: 0 |
| `onValueChange` | `((value: number) => void)` | — | No | Called with the snapped value whenever a drag or key press changes it. |
| `min` | `number` | — | No | Lowest value on the track. Default: 0 |
| `max` | `number` | — | No | Highest value on the track. Default: 100 |
| `step` | `number` | — | No | Increment values snap to when dragging or using arrow keys. Default: 1 |
| `disabled` | `boolean` | — | No | Ignores pointer and keyboard input. Default: false |
| `aria-label` | `string` | — | No | Accessible name for the slider handle. |
| `formatValueText` | `((value: number) => string)` | — | No | Announced instead of the raw number — pass one when the value carries a unit or a suffix ("72.5 kg", "35%"); a bare number needs no valueText. |
| `sound` | `boolean` | — | No | Play a tiny tick per step, higher toward the max. Off by default; a `SoundProvider` can mute it app-wide. |

## More in Range Slider

- [Inline Slider](https://beui.dev/components/motion/range-slider/inline.md)
- [Range Slider](https://beui.dev/components/motion/range-slider/stepped.md)
- [Wave Slider](https://beui.dev/components/motion/range-slider/wave.md)
- [Bubble Slider](https://beui.dev/components/motion/range-slider/bubble.md)
- [Ruler Slider](https://beui.dev/components/motion/range-slider/ruler.md)

## Source

- Registry detail: https://beui.dev/r/range-slider-fluid
- Raw source: https://beui.dev/r/range-slider-fluid/raw
- GitHub: https://github.com/starc007/ui-components
