fix: IconProps type is incompatible with icons components (#1078)
This commit is contained in:
parent
c2b99e16d1
commit
214c8cbfda
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue