# Approve stamp

Approval with weight: a stamp falls onto the card, lands a little crooked as the card dips, and its ink spreads with real grain.

Also called: stamp animation, approved stamp.

> chatcn Pro: needs a Pro license (https://chatcn.dev/pro). Install from the `@chatcn-pro` registry with your license token; setup at https://chatcn.dev/docs/chatcn-pro.

Example: Approval with weight. Approve the refund and a stamp comes down on the card: it falls, lands a little crooked, the card dips and the ink spreads with real grain. Preview: https://chatcn.dev/preview/approve-stamp-demo

Wrap the thing being approved. When it is approved a stamp comes down on it: it falls from above, accelerating as a hand would, lands slightly oversized and settles, the card gives a little under the hit, and the ink spreads out from the centre with the uneven grain of a rubber stamp. Declined lands the same way in red. A `note` line under the word records who and when.

## Installation

```bash
npx shadcn@latest add @chatcn-pro/approve-stamp
```

## Usage

```tsx
import { ApproveStamp } from "@/components/ui/chatcn/pro/approve-stamp"

<ApproveStamp status={decision} note="Ines, 14:02">
  <RefundCard />
</ApproveStamp>
```

## Props

| Prop | Type | Notes |
| --- | --- | --- |
| `status` | `"pending" | "approved" | "declined"` |  |
| `labels` | `{ approved?, declined? }` | Words on the stamp |
| `note` | `string` | A short line under the word |
| `align` | `"start" | "center" | "end"` | Where it lands. Default `end` |

## Accessibility

- The decision is announced in words through a status region; the stamp itself is decorative.

## Motion

- The fall accelerates into the paper (the one ease in in the kit, because it is gravity), then lands with a small settle: 460 ms.
- The grain is an SVG turbulence mask; the ink spread is a growing circle mask. Reduced motion: the stamp fades in.

Source: https://chatcn.dev/docs/components/approve-stamp