UNPKG

@orca-fe/pocket

Version:

UI components by orca-team

20 lines (19 loc) 657 B
import React from 'react'; export type IconDataType = Record<string, any> & { viewBox?: string; paths?: React.SVGAttributes<SVGPathElement>[]; }; export interface SvgIconProps extends React.SVGAttributes<SVGSVGElement> { /** 大小 */ size?: number | string; /** 整体颜色 */ color?: string; /** 图标配置 */ icon: IconDataType; /** 覆盖自定义图标的 path 属性 */ customPathProps?: React.SVGAttributes<SVGPathElement>[]; /** 是否旋转 */ spinning?: boolean; } declare const SvgIcon: React.ForwardRefExoticComponent<SvgIconProps & React.RefAttributes<SVGSVGElement>>; export default SvgIcon;