iconBase.d.ts 593 B

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