# resolveIcon

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

@shumoku/core · 0.4.0 · function

# resolveIcon

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/icons/resolve.ts#L41)

Resolve the icon to render for a given spec. Returns the explicit \`spec.icon\` if any; otherwise the bundled device-type fallback; otherwise null.

```
resolveIcon(spec: NodeSpec | undefined): ResolvedIcon | null
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `spec` | `NodeSpec | undefined` | No additional description. | `—` |

## Returns

```
ResolvedIcon | null
```

[`libs/@shumoku/core/src/icons/resolve.ts:41`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/icons/resolve.ts#L41)
