nuxt-compose-icons / module / NuxtComposeIconsOptions
Interface: NuxtComposeIconsOptions
Defined in: module.ts:94
Properties
cacheDir?
optional cacheDir?: string;Defined in: module.ts:184
Directory used to persist the SVG processing cache across builds. Resolved relative to the project root. Defaults to node_modules/.cache/nuxt-compose-icons. Safe to gitignore.
component?
optional component?: IconComponentOptions;Defined in: module.ts:111
Component generation options: naming, output directory, file format.
debug?
optional debug?: boolean;Defined in: module.ts:175
Show additional debug logs during setup.
Default
falsedefaultSize?
optional defaultSize?: string;Defined in: module.ts:134
The size key used when no size prop is passed to a generated component or useComposeIcon. Falls back to 'md' if present, then to the first configured key. Mainly useful with a custom iconSizes scale that has no md key.
dryRun?
optional dryRun?: boolean;Defined in: module.ts:159
Log component names without writing files. Useful to preview what will be generated.
Default
falseiconSizes?
optional iconSizes?: ComposeIconSize;Defined in: module.ts:125
Icon sizes used to generate --size-* CSS variables and size classes. When provided, fully replaces the built-in defaults with your own whole scale
defaults: { sm: '1.5rem', md: '2rem', lg: '3rem', xl: '4rem' }
includeComposables?
optional includeComposables?: boolean;Defined in: module.ts:147
Auto-import useComposeIcon and useComposeIconTheme. Disable if you only use the generated components and don't need these directly.
Default
truepathToIcons?
optional pathToIcons?: string;Defined in: module.ts:104
The path to the .svg icons directory
reRunOnBuild?
optional reRunOnBuild?: boolean;Defined in: module.ts:167
Whether to re-run icon generation on every build. (bypassing the built-in cache)
Default
false