UNPKG

@hugeicons/react

Version:

HugeIcons Pro React Component Library https://hugeicons.com

24 lines (21 loc) 963 B
import { ForwardRefExoticComponent, RefAttributes, SVGProps } from 'react'; type IconSvgElement = readonly (readonly [string, { readonly [key: string]: string | number; }])[]; type SVGAttributes = Partial<SVGProps<SVGSVGElement>>; type ComponentAttributes = RefAttributes<SVGSVGElement> & SVGAttributes; interface HugeiconsProps extends ComponentAttributes { size?: string | number; strokeWidth?: number; absoluteStrokeWidth?: boolean; altIcon?: IconSvgElement; showAlt?: boolean; icon?: IconSvgElement; } interface HugeiconsIconProps extends Omit<HugeiconsProps, 'ref' | 'altIcon'> { icon: IconSvgElement; altIcon?: IconSvgElement; } type HugeiconsIcon = ForwardRefExoticComponent<HugeiconsProps>; declare const HugeiconsIcon: ForwardRefExoticComponent<HugeiconsIconProps & RefAttributes<SVGSVGElement>>; export { HugeiconsIcon, HugeiconsIconProps, HugeiconsProps, IconSvgElement, SVGAttributes, HugeiconsIcon as default };