# resolveIcon

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

@shumoku/core · 0.4.0 · function

# resolveIcon

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

APIの説明は英語のcanonical sourceを表示しています。

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

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `spec` | `NodeSpec | undefined` | 追加説明はありません。 | `—` |

## 戻り値

```
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)
