# Kinetic Text · Pro

Rows of repeated text run in alternating directions across a slanted block, and the whole thing speeds up with the scroll velocity of the page.

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/kinetic-text
```

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

## API — Kinetic Text
| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `text` | `string` | — |  |
| `rows` | `number` | `5` | Marquee rows; odd rows run the other way. |
| `speed` | `number` | `6` | Base speed in % of a row per second. |
| `angle` | `number` | `-8` | Slant of the block in degrees. |
| `gap` | `number` | `0.5` | Space between rows and repeats, in em. |
| `container` | `RefObject<HTMLElement>` | — | Scroll container whose velocity drives the speed. |
| `className` | `string` | — |  |

See it live: https://charcoalui.com/docs/components/kinetic-text