---
title: "Wave Slider"
description: "Free React wave slider: equalizer bars peak around the handle and drop back once it passes, so the value moves as a wave. Keyboard accessible, shadcn install."
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/wave"
markdown: "https://beui.dev/components/motion/range-slider/wave.md"
license: "MIT"
---

# Wave Slider

> Free React wave slider: equalizer bars peak around the handle and drop back once it passes, so the value moves as a wave. Keyboard accessible, shadcn install.

## Install

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

## Dependencies

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

## Usage

### Wave Slider usage

Equalizer bars peak around the handle and drop back once it passes, so the value moves down the track as a wave.

```tsx
"use client";

import { useState } from "react";

import { WaveSlider } from "@/components/motion/range-slider-wave";

export function RangeSliderWavePreview() {
  const [value, setValue] = useState(45);

  return (
    <div className="flex w-full max-w-md flex-col gap-2">
      <div className="flex items-center justify-between text-sm text-muted-foreground">
        <span>Gain</span>
        <span className="tabular-nums text-foreground">{value}</span>
      </div>
      <WaveSlider sound value={value} onValueChange={setValue} aria-label="Gain" />
    </div>
  );
}
```

## API Reference

### WaveSlider

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `bars` | `number` | `32` | No | Number of bars drawn across the track. |
| `className` | `string` | — | No | Classes merged onto the slider track. |
| `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)
- [Fluid Slider](https://beui.dev/components/motion/range-slider/fluid.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-wave
- Raw source: https://beui.dev/r/range-slider-wave/raw
- GitHub: https://github.com/starc007/ui-components
