UNPKG

879 BTypeScriptView Raw
1import React, { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } 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 | undefined;
11 className?: string;
12 style?: React.CSSProperties | undefined;
13}
14export interface IconComponentProps extends IconBaseProps {
15 viewBox?: string | undefined;
16 component?: React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>>;
17 ariaLabel?: React.AriaAttributes['aria-label'];
18}
19export interface IIcon extends ForwardRefExoticComponent<PropsWithoutRef<IconComponentProps> & RefAttributes<HTMLSpanElement>> {
20 __C7N_ICON?: boolean;
21}
22declare const Icon: IIcon;
23export default Icon;