We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b99e1 commit 214c8cbCopy full SHA for 214c8cb
packages/icons-react/src/types.ts
@@ -4,7 +4,7 @@ export type { ReactNode } from 'react';
4
5
export type IconNode = [elementName: keyof ReactSVG, attrs: Record<string, string>][];
6
7
-export interface IconProps extends Partial<Omit<React.SVGProps<SVGSVGElement>, 'stroke'>> {
+export interface IconProps extends Partial<Omit<React.ComponentPropsWithoutRef<'svg'>, 'stroke'>> {
8
size?: string | number;
9
stroke?: string | number;
10
}
0 commit comments