1 | import React, { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
2 | export interface IconBaseProps extends React.HTMLProps<HTMLSpanElement> {
|
3 | spin?: boolean;
|
4 | rotate?: number;
|
5 | }
|
6 | export 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 | }
|
14 | export interface IconComponentProps extends IconBaseProps {
|
15 | viewBox?: string | undefined;
|
16 | component?: React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>>;
|
17 | ariaLabel?: React.AriaAttributes['aria-label'];
|
18 | }
|
19 | export interface IIcon extends ForwardRefExoticComponent<PropsWithoutRef<IconComponentProps> & RefAttributes<HTMLSpanElement>> {
|
20 | __C7N_ICON?: boolean;
|
21 | }
|
22 | declare const Icon: IIcon;
|
23 | export default Icon;
|