---
title: "Sound Kit"
description: "Every beUI sound in one install, with the useSound hook and SoundProvider for app-wide volume and mute."
category: "Sounds"
publishedAt: "2026-11-24"
updatedAt: "2026-11-26"
documentation: "https://beui.dev/sounds/sound-kit"
markdown: "https://beui.dev/sounds/sound-kit.md"
license: "MIT"
---

# Sound Kit

> Every beUI sound in one install, with the useSound hook and SoundProvider for app-wide volume and mute.

## Install

```bash
npx shadcn@latest add @beui/sound-kit
```

## Dependencies

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

## Usage

```tsx
"use client";

import { SoundProvider, successSound, tapSound, useSound } from "@/lib/sounds";

function SaveButton() {
  const tap = useSound(tapSound);
  const success = useSound(successSound);
  return (
    <button
      type="button"
      onPointerDown={() => tap()}
      onClick={() => window.setTimeout(() => success(), 400)}
      className="inline-flex h-9 items-center rounded-full border border-border bg-card px-4 text-sm font-medium text-foreground transition-colors hover:bg-muted"
    >
      Save changes
    </button>
  );
}

export function SoundKitUsage() {
  // One provider sets the volume for every sound, and enabled={false} mutes them.
  return (
    <SoundProvider volume={0.8}>
      <SaveButton />
    </SoundProvider>
  );
}
```

## API Reference

### SoundProvider

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `enabled` | `boolean` | `true` | No | False mutes every beUI sound under the provider. |
| `volume` | `number` | `1` | No | 0 to 1, scales every beUI sound. |

### useSound(sound, options)

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `enabled` | `boolean` | `true` | No | False makes play do nothing, for a component's sound prop. |
| `volume` | `number` | `1` | No | 0 to 1 for this sound, on top of the provider volume. |

### sound.play(options)

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `volume` | `number` | `1` | No | 0 to 1, multiplied with the SoundProvider volume. |
| `pitch` | `number` | `1` | No | Pitch multiplier; 1 is the designed pitch. |

## About Sound Kit

Sound Kit is all 48 beUI interface sounds in one install: controls like tap, press, type, select, toggle, switch and tick, feedback like success, error, warning, check and buzz, motion like open, close, expand, collapse, swipe and drop, and alerts like notify, ping, bell, chime and receive. Each is synthesized live with Web Audio the way a real tap sounds, a contact click, a body tuned to a material and a little room, so there are no audio files. It ships the useSound hook and SoundProvider, which sets one volume and one mute switch for every beUI sound, including the sound props on Button, Switch, Tabs, Dropdown Menu and Animated Toast Stack.

### When to use it

- An app wants consistent feedback sounds across many controls.
- A product needs a settings toggle that mutes every sound at once.
- You want to try sounds before picking the few you ship.

### Accessibility

A sound plays only in answer to the user's own input, never on its own, and it never carries meaning alone: pair it with the visible change it marks. Wrap the app in SoundProvider to give people one mute switch and a volume, and remember their choice.

### FAQ

**Should I install the kit or single sounds?**

Single sounds ship only what you use, about a dozen lines each plus the shared engine. Install the kit when you want them all or are still choosing.

**Does it load an audio file?**

No. tapSound is a short recipe that Web Audio plays the moment it is called: a click of filtered noise for the contact, a body that rings at the partials of a real material and settles in pitch, and a touch of a small room generated in code. Nothing is downloaded and it works offline.

**How do I mute everything?**

Render SoundProvider with enabled={false}. It silences useSound, the sound props on beUI components, and the games, Wheel Picker and Bookshelf.

## Source

- Registry detail: https://beui.dev/r/sound-kit
- Raw source: https://beui.dev/r/sound-kit/raw
- GitHub: https://github.com/starc007/ui-components
