Skip to content

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

runtime/utils/icon-sizing ​

Type Aliases ​

Type AliasDescription
DefaultSizesDefault icon sizes if none have been provided to the module

Variables ​

VariableDescription
iconSizeDefault-

Functions ​

FunctionDescription
getIconSizeClassResolve Icon size class based on the provided size prop
isRawCssSize-
resolveDefaultSizeKeyResolves 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.
resolveFinalSizesResolves the project's final size scale, shared by codegen's size prop default, the generated CSS, and the runtime fallback so all three agree on the same map.