---
title: "Animated Bell Icon"
description: "A bell for a notifications button. It rings once on hover or focus, or when you tell it a new notice came in."
url: https://gelatinui.com/components/animated-bell-icon
markdown_url: https://gelatinui.com/components/animated-bell-icon.md
access: free
install: "npx shadcn@latest add @gelatin-ui/animated-bell-icon"
registry_item: https://gelatinui.com/r/animated-bell-icon.json
version: "2026-11-13"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Bell Icon

> A bell for a notifications button. It rings once on hover or focus, or when you tell it a new notice came in.

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

## When to use it

Best for: A notifications button that rings once on hover, or when a new notice comes in.

- Use it in the notifications button of an app header or a sidebar.
- Set `trigger="none"` and raise `play` to ring it from code when a new notice comes in.

## When not to use it

- For a still bell in a long list of rows, use a plain icon. Many bells that ring at once are noise.
- For a mute toggle of a call, use the [Animated Mic Icon](https://gelatinui.com/components/animated-mic-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.
- `trigger` is `hover` by default: the hover or the keyboard focus of the closest Button, link, or `[data-icon-hover]` element plays it once.
- `play` plays it once each time the number changes.
- The icon is `aria-hidden`. The control around it owns the name.
- It never loops: one ring of 5 swings that die out.

## Anatomy

```text
AnimatedBellIcon
```

## API reference

### AnimatedBellIcon

| 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). |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedBellIcon | `animated-bell-icon` |  |  |  |

## Usage

Put it in a Button. The hover or the keyboard focus of the Button rings it once.

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/animated-bell-icon @gelatin-ui/button
```

```tsx title="notifications-button.tsx"
import { AnimatedBellIcon } from "@/components/icons/animated-bell-icon";
import { Button } from "@/components/ui/button";

export function NotificationsButton() {
  return (
    <Button variant="ghost" size="icon" aria-label="Notifications">
      <AnimatedBellIcon />
    </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/animated-bell-icon
```

It adds 14 registry items: 13 files, 2480 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)
- [Badge](https://gelatinui.com/components/badge.md)
- [Animated Mic Icon](https://gelatinui.com/components/animated-mic-icon.md)

## Accessibility

The icon is hidden from assistive tools. The control around it owns the name.

## Motion

| Part | Motion |
| --- | --- |
| Ring | iconHover · the bell swings 5 times on its knob, the clapper lags, and two waves ring out |
