---
title: "Animated Pin Icon"
description: "A push pin for a Pin toggle. It drops in and fills when the item is pinned, and wiggles on hover."
url: https://gelatinui.com/components/animated-pin-icon
markdown_url: https://gelatinui.com/components/animated-pin-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-pin-icon"
version: "2026-11-13"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Pin Icon

> A push pin for a Pin toggle. It drops in and fills when the item is pinned, and wiggles on hover.

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

## When to use it

Best for: A Pin toggle on a message, a note, or a tab.

- Use it in an icon Button that pins an item.
- Set `pinned` from the pinned state, and set `aria-pressed` on the Button.

## When not to use it

- For a bookmark that saves an item for later, use a Phosphor bookmark icon in a [Button](https://gelatinui.com/components/button.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.
- `pinned` fills the head, and each change to `true` pushes the pin in.
- It plays once per hover or keyboard focus of the control around it. Set `trigger="none"` and count `play` to play it from code.
- The icon is `aria-hidden`. The control around it owns the name.

## Anatomy

```text
AnimatedPinIcon
```

## API reference

### AnimatedPinIcon

| 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). |
| `pinned` | `boolean` | false | Pinned: the pin draws solid in every style, and on each change to `true` it pushes in. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedPinIcon | `animated-pin-icon` |  |  |  |

## Usage

Import Animated Pin Icon and compose its parts.

```tsx title="animated-pin-icon.tsx"
import { AnimatedPinIcon } from "@/components/pro/icons/animated-pin-icon";

export function AnimatedPinIconDemo() {
  return <AnimatedPinIcon className="size-12" />;
}
```

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

It adds 14 registry items: 13 files, 2476 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

- [Animated Undo Icon](https://gelatinui.com/components/animated-undo-icon.md)
- [Animated Trash Icon](https://gelatinui.com/components/animated-trash-icon.md)

## Accessibility

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