# Galaxy · Pro

A tilted spiral of thousands of precomputed points with a bright core and dense arms. Inner stars orbit faster than outer ones, so the arms keep winding, and the whole disc leans with the pointer.

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/galaxy
```

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

## API — Galaxy
| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `arms` | `number` | `3` | Spiral arms. |
| `density` | `number` | `1` | Star count multiplier; the base count scales with the box area, capped at 8000. |
| `speed` | `number` | `1` | Rotation speed multiplier. |
| `color` | `string` | `var(--ember)` | Arm tint; the core stays foreground-coloured. |
| `twinkle` | `boolean` | `true` | Stars flicker in brightness. |
| `className` | `string` | — |  |

See it live: https://charcoalui.com/docs/components/galaxy