import { CSSProperties, FC, HTMLAttributes, MouseEventHandler } from 'react';
type PropsFromElement = Omit>, 'style' | 'color'>;
export interface IconProps extends PropsFromElement {
/**
* 自定义 class
*/
className?: string;
/**
* 指定具体的 icon component
* 可从 @befe/brick-icon import,也可以自定义
*/
svg?: FC;
/**
* 是否旋转(持续的中心旋转)
* 值为 css animation-duration,数值越大旋转越慢,单位为 second
* true 相当于 1
*/
spin?: boolean | number;
/**
* 颜色,会写给 `style.color`
*/
color?: CSSProperties['color'];
/**
* icon 的点击回调
*/
onClick?: MouseEventHandler;
}
export {};