---
title: "Animated Bookmark Icon"
description: "A bookmark for a Save toggle. The ribbon fills at once, then drops and settles when the item is saved."
url: https://gelatinui.com/components/animated-bookmark-icon
markdown_url: https://gelatinui.com/components/animated-bookmark-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-bookmark-icon"
version: "2026-11-13"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Bookmark Icon

> A bookmark for a Save toggle. The ribbon fills at once, then drops and settles when the item is saved.

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

## When to use it

Best for: A Save toggle: the ribbon fills at once and drops when the item is saved.

- Use it in a toggle that saves an article, a job, or a listing.
- Set `checked` from the saved state. That prop alone drives the motion.

## When not to use it

- For a like or a favorite with a count, use the [Animated Heart Icon](https://gelatinui.com/components/animated-heart-icon.md).
- For a step that is done, use the [Animated Check Icon](https://gelatinui.com/components/animated-check-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 only prop of its own. The default is `false`.
- It has no hover play. Only a change of `checked` moves it.
- The fill is the text color, so set the color on the icon or on the button.
- The icon is `aria-hidden`. Put `aria-pressed` and the name on the button.

## Anatomy

```text
AnimatedBookmarkIcon
```

## API reference

### AnimatedBookmarkIcon

| 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 | Saved: the ribbon fills and, on each change to `true`, drops and settles. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedBookmarkIcon | `animated-bookmark-icon` |  |  |  |

## Usage

Set `checked` from the saved 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-bookmark-icon @gelatin-ui/button
```

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

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

export function SaveButton() {
  const [saved, setSaved] = useState(false);
  return (
    <Button
      variant="ghost"
      size="icon"
      aria-label="Save"
      aria-pressed={saved}
      onClick={() => {
        setSaved((current) => {
          return !current;
        });
      }}
    >
      <AnimatedBookmarkIcon checked={saved} />
    </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-bookmark-icon
```

It adds 10 registry items: 9 files, 2117 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)
- [Toggle](https://gelatinui.com/components/toggle.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 |
| --- | --- |
| Save | panel · the ribbon fills at once, drops, and settles |
| Unsave | panel · the ribbon empties and lifts once |
