---
title: "Animated Play Pause Icon"
description: "One icon for a Play and Pause button. The triangle changes shape into two bars and back, point by point."
url: https://gelatinui.com/components/animated-play-pause-icon
markdown_url: https://gelatinui.com/components/animated-play-pause-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-play-pause-icon"
version: "2026-11-13"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Play Pause Icon

> One icon for a Play and Pause button. The triangle changes shape into two bars and back, point by point.

Page: https://gelatinui.com/components/animated-play-pause-icon

## When to use it

Best for: A Play and Pause button of a video, a song, or a slideshow.

- Set `paused` from your player state.
- Use it in a Button with a name that changes with the state.

## When not to use it

- For a mute button, use an [Animated Volume Icon](https://gelatinui.com/components/animated-volume-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.
- A press mid-morph turns back from where the points are.
- It never flips in right to left: this is a media convention.

## Anatomy

```text
AnimatedPlayPauseIcon
```

## API reference

### AnimatedPlayPauseIcon

| 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. |
| `paused` | `boolean` | true | Paused: shows the play triangle. Not paused: shows the pause bars. Default true. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedPlayPauseIcon | `animated-play-pause-icon` |  |  |  |

## Usage

Set `paused` from your state.

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-play-pause-icon @gelatin-ui/button
```

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

import { AnimatedPlayPauseIcon } from "@/components/pro/icons/animated-play-pause-icon";
import { Button } from "@/components/ui/button";

export function PlayButton() {
  const [paused, setPaused] = useState(true);
  return (
    <Button
      size="icon"
      aria-label={paused ? "Play" : "Pause"}
      onClick={() => {
        setPaused(!paused);
      }}
    >
      <AnimatedPlayPauseIcon paused={paused} />
    </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-play-pause-icon
```

It adds 9 registry items: 8 files, 1972 lines, and the npm packages `@base-ui/react`, `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)
- [Animated Volume Icon](https://gelatinui.com/components/animated-volume-icon.md)

## Accessibility

It is a picture, so the Button needs text or an `aria-label`.

Keyboard focus plays it too.
