diff --git a/src/index.ts b/src/index.ts index b77393f..e9410fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ export const iconsPlugin = ({ collections, ...options }: IconsPluginOptions) => { - const { scale = 1, prefix = "i" } = options ?? {} + const { scale = 1, prefix = "i", extraProperties = {} } = options ?? {} const components: Record> = {} @@ -29,6 +29,7 @@ export const iconsPlugin = ({ if (!data) return components[`${prefix}-${name}`] = generateIconComponent(data, { scale, + extraProperties, }) }) }