UNPKG

575 BTypeScriptView Raw
1import * as React from 'react';
2export interface IconTree {
3 tag: string;
4 attr: {
5 [key: string]: string;
6 };
7 child: IconTree[];
8}
9export declare function GenIcon(data: IconTree): (props: IconBaseProps) => JSX.Element;
10export interface IconBaseProps extends React.SVGAttributes<SVGElement> {
11 children?: React.ReactNode;
12 size?: string | number;
13 color?: string;
14 title?: string;
15}
16export declare type IconType = (props: IconBaseProps) => JSX.Element;
17export declare function IconBase(props: IconBaseProps & {
18 attr?: {};
19}): JSX.Element;