Skip to content

Commit

Permalink
fix: IconProps type is incompatible with icons components (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulbasithqb committed Apr 30, 2024
1 parent c2b99e1 commit 214c8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/icons-react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type { ReactNode } from 'react';

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

export interface IconProps extends Partial<Omit<React.SVGProps<SVGSVGElement>, 'stroke'>> {
export interface IconProps extends Partial<Omit<React.ComponentPropsWithoutRef<'svg'>, 'stroke'>> {
size?: string | number;
stroke?: string | number;
}
Expand Down

0 comments on commit 214c8cb

Please sign in to comment.