---
title: "Animated Repost Icon"
description: "Two chasing arrows for a Repost toggle. On repost they turn a half turn, pass it, and settle. A fast second press goes on from mid-turn."
url: https://gelatinui.com/components/animated-repost-icon
markdown_url: https://gelatinui.com/components/animated-repost-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-repost-icon"
version: "2026-11-21"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Repost Icon

> Two chasing arrows for a Repost toggle. On repost they turn a half turn, pass it, and settle. A fast second press goes on from mid-turn.

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

## When to use it

Best for: A Repost toggle: the arrows turn a half turn on repost and shake back on undo.

- Use it in a Repost or Reshare toggle.
- Set `checked` from the reposted state. A change to `true` plays the turn.
- In a Social Action, pass it to `SocialActionIcon` as `render`.

## When not to use it

- For a button that loads data again, use the [Animated Refresh Icon](https://gelatinui.com/components/animated-refresh-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.
- `checked` is the reposted state. The default is `false`.
- The stroke grows a little while checked, so the state shows with no fill.
- The icon is `aria-hidden`. Put `aria-pressed` and the name on the button.

## Anatomy

```text
AnimatedRepostIcon
```

## API reference

### AnimatedRepostIcon

| 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. |
| `checked` | `boolean` | false | Reposted: the arrows take the stroke weight of a pressed mark and turn on each change to `true`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedRepostIcon | `animated-repost-icon` |  |  |  |

## Usage

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

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

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

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

import { AnimatedRepostIcon } from "@/components/pro/icons/animated-repost-icon";
import { Toggle } from "@/components/ui/toggle";

export function RepostButton() {
  const [reposted, setReposted] = useState(false);
  return (
    <Toggle aria-label="Repost" pressed={reposted} onPressedChange={setReposted}>
      <AnimatedRepostIcon checked={reposted} />
    </Toggle>
  );
}
```

## 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-repost-icon
```

It adds 10 registry items: 9 files, 2135 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

- [Toggle](https://gelatinui.com/components/toggle.md)
- [Social Action](https://gelatinui.com/components/social-action.md)
- [Animated Heart Icon](https://gelatinui.com/components/animated-heart-icon.md)

## Accessibility

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

## Motion

| Part | Motion |
| --- | --- |
| Repost | panel · the arrows turn 200°, then settle at 180° |
| Undo | panel · the arrows shake back 18° and settle |
