Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

classifyIcon

ソース

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