# Elastic Mesh · Pro

A grid of points on springs, coupled to their neighbours, so the pointer dents the mesh and the dent rings outward and settles.

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/elastic-mesh
```

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

## API — Elastic Mesh
| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `cols` | `number` | `18` |  |
| `rows` | `number` | `12` |  |
| `stiffness` | `number` | `0.08` |  |
| `damping` | `number` | `0.9` | Velocity kept per frame. |
| `color` | `string` | `"var(--muted-foreground)"` |  |
| `lineWidth` | `number` | `1` |  |
| `radius` | `number` | `90` | Pointer push radius in px. |
| `className` | `string` | — |  |

See it live: https://charcoalui.com/docs/components/elastic-mesh