# getLinkWidth

Canonical: https://docs.shumoku.dev/en/library/api/getLinkWidth
Language: en

@shumoku/core · 0.4.0 · function

# getLinkWidth

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/link-utils.ts#L190)

Compute the visual line width for a link. Single source of truth — used by layout, routing, and rendering.

```
getLinkWidth(link: Link): number
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `link` | `Link` | No additional description. | `—` |

## Returns

```
number
```

[`libs/@shumoku/core/src/layout/link-utils.ts:190`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/link-utils.ts#L190)
