via-icons/dist/lib/esm/iconBase.d.ts

20 lines
593 B
TypeScript
Raw Normal View History

import * as React from "react";
export interface IconTree {
tag: string;
attr: {
[key: string]: string;
};
child: IconTree[];
}
2024-08-22 13:58:09 -06:00
export declare function GenIcon(data: IconTree): (props: IconBaseProps) => React.JSX.Element;
export interface IconBaseProps extends React.SVGAttributes<SVGElement> {
children?: React.ReactNode;
size?: string | number;
color?: string;
title?: string;
}
2024-08-22 13:58:09 -06:00
export type IconType = (props: IconBaseProps) => JSX.Element;
export declare function IconBase(props: IconBaseProps & {
attr?: Record<string, string>;
2024-08-22 13:58:09 -06:00
}): JSX.Element;