22 lines
650 B
TypeScript
22 lines
650 B
TypeScript
import * as React from "react";
|
|
export interface IconTree {
|
|
tag: string;
|
|
attr: {
|
|
[key: string]: string;
|
|
};
|
|
child: IconTree[];
|
|
}
|
|
export declare function GenIcon(data: IconTree): (props: IconBaseProps) => any;
|
|
export interface IconBaseProps extends React.SVGAttributes<SVGElement> {
|
|
children?: React.ReactNode;
|
|
size?: string | number;
|
|
color?: string;
|
|
title?: string;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
}
|
|
export type IconType = (props: IconBaseProps) => React.ReactElement;
|
|
export declare function IconBase(props: IconBaseProps & {
|
|
attr?: Record<string, string>;
|
|
}): React.ReactElement;
|