# Decay Card · Pro

An image that melts and smears when the pointer or the page moves fast, then settles. Turbulence displaces the pixels and a blur stretched along the direction of travel makes the smear.

This is a Charcoal UI Pro component. Its source and examples are available with a Pro seat: https://charcoalui.com/pricing

## With a Pro seat

1. Add the registry to components.json:

```json
{
  "registries": {
    "@charcoal": {
      "url": "https://charcoalui.com/r/{name}.json",
      "headers": {
        "Authorization": "Bearer ${CHARCOAL_LICENSE_KEY}"
      }
    }
  }
}
```

2. Copy your licence key from https://charcoalui.com/dashboard and put it in .env.local as CHARCOAL_LICENSE_KEY, then:

```bash
npx shadcn@latest add @charcoal/decay-card
```

To read Pro source through this MCP server, reconnect it with the header "Authorization: Bearer <licence key>".

## API — Decay Card
| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `src` | `string` | — | Image URL. |
| `alt` | `string` | `""` |  |
| `strength` | `number` | `1` | 0 to 3. How far the image melts at full speed. |
| `width` | `number` | `300` |  |
| `height` | `number` | `400` |  |
| `children` | `ReactNode` | — | Laid over the image, bottom left. |
| `className` | `string` | — |  |

See it live: https://charcoalui.com/docs/components/decay-card