UNPKG

@meronex/icons

Version:

SVG React icons of popular icon packs using ES6 imports

22 lines (21 loc) 622 B
import * as React from 'react'; export interface IconTree { tag: string; attr: { [key: string]: string; }; child: IconTree[]; content: string; } export declare function GenIcon(data: IconTree): (props: IconBaseProps) => JSX.Element; export interface IconBaseProps extends React.SVGAttributes<SVGElement> { children?: React.ReactNode; size?: string | number; color?: string; title?: string; hasStrokes?: boolean; } export declare type IconType = (props: IconBaseProps) => JSX.Element; export declare function IconBase(props: IconBaseProps & { attr?: {}; }): JSX.Element;