diff --git a/packages/lucide-react/src/createLucideIcon.ts b/packages/lucide-react/src/createLucideIcon.ts index f0e4258ea..e8e03493d 100644 --- a/packages/lucide-react/src/createLucideIcon.ts +++ b/packages/lucide-react/src/createLucideIcon.ts @@ -4,13 +4,14 @@ import defaultAttributes from './defaultAttributes'; export type IconNode = [elementName: keyof ReactSVG, attrs: Record][] export type SVGAttributes = Partial> +type ComponentAttributes = RefAttributes & SVGAttributes -export interface LucideProps extends SVGAttributes { +export interface LucideProps extends ComponentAttributes { size?: string | number absoluteStrokeWidth?: boolean } -export type LucideIcon = ForwardRefExoticComponent> +export type LucideIcon = ForwardRefExoticComponent; /** * Converts string to KebabCase * Copied from scripts/helper. If anyone knows how to properly import it here