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