1
import * as React from 'react';
2 4
import { createHostComponent } from '@remax/runtime';
3

4
export interface IconProps {
5
  readonly dataset?: DOMStringMap;
6
  id?: string;
7
  className: string;
8
  type:
9
    | 'info'
10
    | 'warn'
11
    | 'waiting'
12
    | 'cancel'
13
    | 'download'
14
    | 'search'
15
    | 'clear'
16
    | 'success'
17
    | 'success_no_circle'
18
    | 'loading';
19
  size?: number;
20
  color?: string;
21
}
22

23 4
export const Icon = createHostComponent<IconProps>('icon') as React.ComponentType<IconProps>;

Read our documentation on viewing source code .

Loading