# Cover Flow · Pro

The classic cover flow: the chosen cover faces you, the rest fan away at an angle with reflections beneath. Click, arrow keys or scroll bring another to the front on a spring.

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/cover-flow
```

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

## API — Cover Flow
| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `items` | `{ src: string; title: string; subtitle?: string }[]` | — |  |
| `angle` | `number` | `55` |  |
| `spacing` | `number` | `70` |  |
| `reflection` | `boolean` | `true` |  |
| `size` | `number` | `200` |  |
| `defaultIndex` | `number` | — |  |
| `onChange` | `(index: number) => void` | — |  |
| `className` | `string` | — |  |

See it live: https://charcoalui.com/docs/components/cover-flow