=> (
- { size, strokeWidth = 2, absoluteStrokeWidth, color, ...props }, // props
+ { size, strokeWidth = 2, absoluteStrokeWidth, color, class: classes, ...props }, // props
{ attrs, slots } // context
) => {
return h(
@@ -35,7 +35,7 @@ const createLucideIcon = (iconName: string, iconNode: IconNode): FunctionalCompo
stroke: color || defaultAttributes.stroke,
'stroke-width': absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
...attrs,
- class: ['lucide', `lucide-${toKebabCase(iconName)}`, attrs?.class || ''],
+ class: ['lucide', `lucide-${toKebabCase(iconName)}`],
...props,
},
[
diff --git a/packages/lucide-vue-next/tests/__snapshots__/lucide-vue-next.spec.ts.snap b/packages/lucide-vue-next/tests/__snapshots__/lucide-vue-next.spec.ts.snap
index 498d5299b92..9a609fb1d63 100644
--- a/packages/lucide-vue-next/tests/__snapshots__/lucide-vue-next.spec.ts.snap
+++ b/packages/lucide-vue-next/tests/__snapshots__/lucide-vue-next.spec.ts.snap
@@ -3,7 +3,7 @@
exports[`Using lucide icon components > should add a class to the element 1`] = `