1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-01-17 12:48:26 +01:00

fix: IconProps type is incompatible with icons components (#1078)

This commit is contained in:
Basith 2024-05-01 01:47:34 +05:30 committed by GitHub
parent c2b99e16d1
commit 214c8cbfda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}