# Scroll Scale Text · Pro

A heading pinned inside a tall section whose scale, letter-spacing and weight follow your scroll through it, so it grows from a whisper to a shout.

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/scroll-scale-text
```

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

## API — Scroll Scale Text
| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `text` | `string` | — |  |
| `from` | `number` | `0.6` | Scale at the top of the section. |
| `to` | `number` | `1.4` | Scale at the bottom. |
| `tracking` | `[number, number]` | `[0.2, -0.04]` | Letter-spacing in em at the top and bottom. |
| `weight` | `[number, number]` | `[300, 800]` | Font weight at the top and bottom; needs a variable font. |
| `height` | `number` | `250` | Section height in vh. |
| `container` | `RefObject<HTMLElement>` | — |  |
| `className` | `string` | — |  |

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