---
title: "Animated Mic Icon"
description: "A microphone for the mute button of a call. It bobs on hover, and a slash draws across it when it is muted."
url: https://gelatinui.com/components/animated-mic-icon
markdown_url: https://gelatinui.com/components/animated-mic-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-mic-icon"
version: "2026-11-13"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Mic Icon

> A microphone for the mute button of a call. It bobs on hover, and a slash draws across it when it is muted.

Page: https://gelatinui.com/components/animated-mic-icon

## When to use it

Best for: A microphone that takes a slash when it is muted, for the mute toggle of a call.

- Use it in the mute toggle of a call or a voice room.
- Set `muted` from the muted state. That prop alone draws the slash.

## When not to use it

- For a sound or a speaker level, use the [Animated Volume Icon](https://gelatinui.com/components/animated-volume-icon.md).
- For a value that shows or hides, use the [Animated Eye Icon](https://gelatinui.com/components/animated-eye-icon.md).

## Notes for agents

- `variant` (`stroke`, `solid`, `duotone`, `twotone`, `bulk`) and `corners` (`round`, `sharp`) pick the style. Use one style for every icon of a product.
- `muted` is the only state prop. The default is `false`.
- `trigger` is `hover` by default: the hover or the keyboard focus of the control plays one bob.
- The icon is `aria-hidden`. Put `aria-pressed` and the name on the button.

## Anatomy

```text
AnimatedMicIcon
```

## API reference

### AnimatedMicIcon

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"bulk" \| "duotone" \| "solid" \| "stroke" \| "twotone"` |  | `stroke` (default): 1.5 strokes. `solid`: the body filled, inner details cut through. `duotone`: a 40% fill under the stroke. `twotone`: the details at 40%. `bulk`: the body filled at 40% with no outline, the details at full color. |
| `corners` | `"round" \| "sharp"` |  | `round` (default): round caps and joins, soft corners. `sharp`: square caps, miter joins. |
| `trigger` | `"hover" \| "none"` |  | `hover` (default) plays once per hover or keyboard focus of the control around the icon. |
| `play` | `number` |  | Plays once each time this number changes (a new notice, a saved form). |
| `muted` | `boolean` | false | Muted: a slash draws across the microphone. Default: the open microphone. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedMicIcon | `animated-mic-icon` |  |  |  |

## Usage

Set `muted` from the muted state, and put `aria-pressed` on the button.

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/animated-mic-icon @gelatin-ui/button
```

```tsx title="mute-button.tsx"
import { useState } from "react";

import { AnimatedMicIcon } from "@/components/pro/icons/animated-mic-icon";
import { Button } from "@/components/ui/button";

export function MuteButton() {
  const [muted, setMuted] = useState(false);
  return (
    <Button
      variant="secondary"
      size="icon"
      aria-label="Mute"
      aria-pressed={muted}
      onClick={() => {
        setMuted((current) => {
          return !current;
        });
      }}
    >
      <AnimatedMicIcon muted={muted} />
    </Button>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/animated-mic-icon
```

It adds 14 registry items: 13 files, 2466 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Button](https://gelatinui.com/components/button.md)
- [Toggle](https://gelatinui.com/components/toggle.md)
- [Animated Eye Icon](https://gelatinui.com/components/animated-eye-icon.md)

## Accessibility

The icon is hidden from assistive tools. Put the name and `aria-pressed` on the button.

## Motion

| Part | Motion |
| --- | --- |
| Mute | iconDraw · the capsule presses and the slash draws across it |
| Hover | iconHover · the microphone bobs once |
