focus-pro
Version:
focus-pro 中台前端组件库
21 lines (20 loc) • 860 B
TypeScript
import React from 'react';
import { createFromIconfont } from './createFromIconfont';
import { createIcon } from './createIcon';
import './index.module.less';
type BaseIconProps = {
className?: string;
style?: React.CSSProperties;
size?: string | string[];
spin?: boolean;
};
export type IconProps = BaseIconProps & Omit<React.SVGAttributes<SVGElement>, keyof BaseIconProps>;
export declare const getSize: (size: IconProps['size']) => string[];
export declare const Icon: React.ForwardRefExoticComponent<BaseIconProps & Omit<React.SVGAttributes<SVGElement>, keyof BaseIconProps> & {
children?: React.ReactNode;
} & React.RefAttributes<SVGSVGElement>>;
declare const iconMap: {
[x: string]: string;
};
declare const IconComponents: Record<string, React.FC<IconProps>>;
export { IconComponents, createFromIconfont, createIcon, iconMap };