1 |
|
2 |
|
3 | import * as React from 'react';
|
4 | import CommonProps from '../util';
|
5 |
|
6 | export interface IconProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
7 | |
8 |
|
9 |
|
10 | type?: string;
|
11 |
|
12 | |
13 |
|
14 |
|
15 | size?:
|
16 | | number
|
17 | | 'xxs'
|
18 | | 'xs'
|
19 | | 'small'
|
20 | | 'medium'
|
21 | | 'large'
|
22 | | 'xl'
|
23 | | 'xxl'
|
24 | | 'xxxl'
|
25 | | 'inherit';
|
26 | }
|
27 |
|
28 | export interface iconOptions {
|
29 | |
30 |
|
31 |
|
32 | scriptUrl: string;
|
33 | }
|
34 |
|
35 | export class CustomIcon extends React.Component<IconProps, any> {}
|
36 |
|
37 | export default class Icon extends React.Component<IconProps, any> {
|
38 | static createFromIconfontCN(options: iconOptions): typeof CustomIcon;
|
39 | }
|