mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-01-17 04:38:28 +01:00
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…
x
Reference in New Issue
Block a user