---
title: "Mute Toggle"
description: "A speaker that recoils as its waves fold back in and a slash cuts through it, then pumps the waves back out with a ripple on unmute."
category: "Micro Interactions"
publishedAt: "2026-11-16"
updatedAt: "2026-11-25"
documentation: "https://beui.dev/micro-interactions/mute-toggle"
markdown: "https://beui.dev/micro-interactions/mute-toggle.md"
license: "MIT"
---

# Mute Toggle

> A speaker that recoils as its waves fold back in and a slash cuts through it, then pumps the waves back out with a ripple on unmute.

## Install

```bash
npx shadcn@latest add @beui/mute-toggle
```

## Dependencies

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

## Usage

```tsx
"use client";

import { MuteToggle } from "@/components/motion/mute-toggle";

export function MuteToggleUsage() {
  return <MuteToggle />;
}
```

## API Reference

### MuteToggle

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `muted` | `boolean` | — | No | Whether sound is muted, for controlled use. |
| `defaultMuted` | `boolean` | `false` | No | Whether it starts muted when uncontrolled. Default: false |
| `onMutedChange` | `((muted: boolean) => void)` | — | No | Called with the new muted state when the button is pressed. |
| `labels` | `Partial<{ mute: string; }>` | — | No | Override any built-in string, e.g. for translation. |
| `sound` | `boolean` | `false` | No | Play a falling snap on mute and a rising one on unmute. Off by default; a `SoundProvider` can mute it app-wide. |
| `className` | `string` | — | No | Classes merged onto the root element. |

## About Mute Toggle

Mute Toggle is a React sound toggle built with Framer Motion. Muting makes the speaker recoil and folds the sound waves back into it from the outside in, then a slash cuts through and leaves a clean gap in the speaker. Unmuting lifts the slash, the speaker pumps, the waves spring back out from the inside, and one pulse ripples past them, so sound reads as leaving and returning.

### When to use it

- A video, call or audio player needs a mute control.
- A game or app toggles sound effects.
- A notification setting silences alerts.

### Accessibility

It renders a real button named Mute with aria-pressed showing the state. With reduced motion the waves fade instead of folding, the slash appears at once, and the speaker and ripple stay still.

### FAQ

**Is it controlled?**

Either way. Pass muted with onMutedChange, or defaultMuted.

**Can I rename it?**

Yes. Pass labels with mute, for example Mute sound effects.

## Source

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