UNPKG

811 BTypeScriptView Raw
1import { CSSProperties, FocusEventHandler, MouseEventHandler } from 'react';
2import createFromIconfontCN from './IconFont';
3export interface IconProps {
4 type: string;
5 className?: string;
6 title?: string;
7 customFontName?: string;
8 onClick?: MouseEventHandler<any>;
9 onFocus?: FocusEventHandler<any>;
10 onMouseDown?: MouseEventHandler<any>;
11 onMouseUp?: MouseEventHandler<any>;
12 onMouseEnter?: MouseEventHandler<any>;
13 onMouseLeave?: MouseEventHandler<any>;
14 style?: CSSProperties;
15 tabIndex?: number;
16 width?: number | string;
17 height?: number | string;
18 scriptUrl?: string;
19}
20declare const Icon: {
21 (props: IconProps): JSX.Element;
22 displayName: string;
23 createFromIconfontCN: typeof createFromIconfontCN;
24 __C7N_ICON: boolean;
25};
26export default Icon;