Skip to content

Commit

Permalink
fix: missing props from index (egoist#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban authored Oct 2, 2023
1 parent 44b26c8 commit 7a83673
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, Record<string, string>> = {}

Expand All @@ -29,6 +29,7 @@ export const iconsPlugin = ({
if (!data) return
components[`${prefix}-${name}`] = generateIconComponent(data, {
scale,
extraProperties,
})
})
}
Expand Down

0 comments on commit 7a83673

Please sign in to comment.