nuxt-compose-icons / module / IconComponentOptions
Interface: IconComponentOptions
Defined in: module.ts:33
Properties
case?
ts
optional case?: "pascal" | "kebab";Defined in: module.ts:58
Naming convention for the generated component.
Default
ts
'pascal'destDir?
ts
optional destDir?: string;Defined in: module.ts:66
Directory where generated components are written. Defaults to .nuxt/compose-icons.
fileFormat?
ts
optional fileFormat?: "vue" | "ts";Defined in: module.ts:75
Format of the generated component file, either as a Vue SFC (.vue) or as a TypeScript file (.ts)
Default
ts
'ts'hasIndexFile?
ts
optional hasIndexFile?: boolean;Defined in: module.ts:83
Write an index.ts barrel file in destDir.
Default
ts
falseiconClasses?
ts
optional iconClasses?: string | string[];Defined in: module.ts:91
Extra CSS classes applied to every generated icon component.
Default
ts
[]prefix?
ts
optional prefix?: string;Defined in: module.ts:41
Prefix prepended to the generated component name. e.g. 'My' → <MyArrowUpIcon />
Default
ts
undefinedsuffix?
ts
optional suffix?: string;Defined in: module.ts:50
Suffix appended to the generated component name. e.g. 'Icon' → <ArrowUpIcon />
Default
ts
'Icon'