Skip to content

nuxt-compose-icons / runtime/utils/icon-sizing / resolveDefaultSizeKey

Function: resolveDefaultSizeKey() ​

ts
function resolveDefaultSizeKey(iconSizes, defaultSize?): string;

Defined in: runtime/utils/icon-sizing.ts:75

Resolves the default size key: defaultSize if it names a real key, else 'md' if present, else the first configured key — arbitrary (the smallest once sorted) but never crashes. Shared by build-time codegen and the runtime fallback so both agree on the same default.

Parameters ​

iconSizes ​

Record<string, string>

defaultSize? ​

string

Returns ​

string