---
title: "Bookmark Button"
description: "A save toggle that drops a filled ribbon into the bookmark from above, cuts a check into it and morphs the label to Saved."
category: "Micro Interactions"
publishedAt: "2026-11-16"
updatedAt: "2026-11-25"
documentation: "https://beui.dev/micro-interactions/bookmark-button"
markdown: "https://beui.dev/micro-interactions/bookmark-button.md"
license: "MIT"
---

# Bookmark Button

> A save toggle that drops a filled ribbon into the bookmark from above, cuts a check into it and morphs the label to Saved.

## Install

```bash
npx shadcn@latest add @beui/bookmark-button
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { BookmarkButton } from "@/components/motion/bookmark-button";

export function BookmarkButtonUsage() {
  return <BookmarkButton />;
}
```

## API Reference

### BookmarkButton

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `saved` | `boolean` | — | No | Whether the item is saved, for controlled use. |
| `defaultSaved` | `boolean` | `false` | No | The initial saved state when uncontrolled. Default: false |
| `onSavedChange` | `((saved: boolean) => void)` | — | No | Called with the new state when the button is pressed. |
| `showLabel` | `boolean` | `true` | No | Show "Save" / "Saved" next to the icon. Icon only when false. |
| `name` | `string` | — | No | What is being saved, for the accessible name ("Save {name}"). |
| `labels` | `Partial<{ save: string; saved: string; saveName: string; }>` | — | No | Override any built-in string, e.g. for translation. |
| `sound` | `boolean` | `false` | No | Play a soft drop on save and a tap on unsave. Off by default; a `SoundProvider` can mute it app-wide. |
| `className` | `string` | — | No | Classes merged onto the root element. |

## About Bookmark Button

Bookmark Button is a React save toggle built with Framer Motion. Saving drops a filled ribbon into the bookmark outline from above; it lands on a light spring, a check cuts into it, the pill tints with the primary colour and the label morphs from Save to Saved with Text Morph, a "d" springing onto the end. Unsaving lifts the ribbon back out the top. Set showLabel to false for an icon-only button.

### When to use it

- An article list or reader needs save for later.
- A listings or job board lets people shortlist items.
- A docs site lets readers pin pages.

### Accessibility

It renders a button with aria-pressed and a steady accessible name, Save or Save {name}, so screen readers announce the state rather than a changing label. With reduced motion the ribbon fades in and out instead of dropping.

### FAQ

**How do I give each bookmark a unique name?**

Pass name, for example name="Designing for reduced motion", and the accessible name becomes "Save Designing for reduced motion", so screen reader users can tell the buttons in a list apart.

**Is it controlled or uncontrolled?**

Both. Use saved with onSavedChange, or defaultSaved.

## Source

- Registry detail: https://beui.dev/r/bookmark-button
- Raw source: https://beui.dev/r/bookmark-button/raw
- GitHub: https://github.com/starc007/ui-components
