Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.2 · function

resolveIcon

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

Parameters

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

Returns

ResolvedIcon | null

libs/@shumoku/core/src/libs/@shumoku/core/src/icons/resolve.ts:41