Skip to content

Commit

Permalink
Merge pull request #1 from abdulbasithqb/fixes/icon-props-fix
Browse files Browse the repository at this point in the history
fix: IconProps type is incompatible with icons components
  • Loading branch information
abdulbasithqb authored Apr 3, 2024
2 parents f12135f + 750245a commit 46c6fdf
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 46c6fdf

Please sign in to comment.