mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-21 05:11:25 +02:00
fix: IconProps type is incompatible with icons components (#1078)
This commit is contained in:
@@ -4,7 +4,7 @@ export type { ReactNode } from 'react';
|
|||||||
|
|
||||||
export type IconNode = [elementName: keyof ReactSVG, attrs: Record<string, string>][];
|
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;
|
size?: string | number;
|
||||||
stroke?: string | number;
|
stroke?: string | number;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user