From a6f86a05d1955c6df7c8364b5823ef9dd6cf73e4 Mon Sep 17 00:00:00 2001 From: Shane Friedman Date: Sun, 14 Dec 2025 07:04:30 -0500 Subject: [PATCH] Fix ref types in icons-react (#1394) `createReactComponent` incorrectly types its `forwardRef` call as reffing an `Icon` instance. That ref is then passed directly to an `svg` element, so instead, it should be typed as `SVGSVGElement`, as this is what will actually be reffed! --- packages/icons-react/src/createReactComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icons-react/src/createReactComponent.ts b/packages/icons-react/src/createReactComponent.ts index 79a10811f..8c479ea4d 100644 --- a/packages/icons-react/src/createReactComponent.ts +++ b/packages/icons-react/src/createReactComponent.ts @@ -8,7 +8,7 @@ const createReactComponent = ( iconNamePascal: string, iconNode: IconNode, ) => { - const Component = forwardRef( + const Component = forwardRef( ( { color = 'currentColor', size = 24, stroke = 2, title, className, children, ...rest }: IconProps, ref,