# classifyIcon

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

@shumoku/core · 0.4.0 · function

# classifyIcon

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

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

Classify a raw icon string into inline-SVG vs URL. Inline content starts with \`<\` (either a bare \`<path .../>\` fragment or a full \`<svg>...</svg>\` block). Anything else is treated as a URL, including \`data:\` URIs.

```
classifyIcon(icon: string | undefined): ResolvedIcon | null
```

## パラメーター

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

## 戻り値

```
ResolvedIcon | null
```

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