UNPKG

786 BTypeScriptView Raw
1import * as React from 'react';
2export interface IconBaseProps extends React.HTMLProps<HTMLSpanElement> {
3 spin?: boolean;
4 rotate?: number;
5}
6export interface CustomIconComponentProps {
7 width: string | number;
8 height: string | number;
9 fill: string;
10 viewBox?: string;
11 className?: string;
12 style?: React.CSSProperties;
13}
14export interface IconComponentProps extends IconBaseProps {
15 viewBox?: string;
16 component?: React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>> | React.ForwardRefExoticComponent<CustomIconComponentProps>;
17 ariaLabel?: React.AriaAttributes['aria-label'];
18}
19declare const Icon: React.ForwardRefExoticComponent<Omit<IconComponentProps, 'ref'> & React.RefAttributes<HTMLSpanElement>>;
20export default Icon;