UNPKG

@kisstar/rc-ui

Version:

UI component library built with React Hooks.

20 lines (19 loc) 756 B
import React, { FC } from 'react'; import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome'; export { default as createFromIconfontCN } from './IconFont'; export interface IconProps extends FontAwesomeIconProps { className?: string; style?: React.CSSProperties; prefixCls?: string; } /** * Icon 组件主要使用的是由 FontAwesome 提供的免费图标。 * * See what icons are available:https://fontawesome.com/icons * * 除了直接使用 Icon 组件外,您还可以通过暴露的 createFromIconfontCN 方法自定义 IconFont 组件。 * * How it works:https://www.iconfont.cn/help/detail?spm=a313x.7781069.1998910419.d0091c141&helptype=code */ export declare const Icon: FC<IconProps>; export default Icon;