Skip to content

Commit 214c8cb

Browse files
fix: IconProps type is incompatible with icons components (#1078)
1 parent c2b99e1 commit 214c8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/icons-react/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type { ReactNode } from 'react';
44

55
export type IconNode = [elementName: keyof ReactSVG, attrs: Record<string, string>][];
66

7-
export interface IconProps extends Partial<Omit<React.SVGProps<SVGSVGElement>, 'stroke'>> {
7+
export interface IconProps extends Partial<Omit<React.ComponentPropsWithoutRef<'svg'>, 'stroke'>> {
88
size?: string | number;
99
stroke?: string | number;
1010
}

0 commit comments

Comments
 (0)