solid-icons
Version:
Modern solution for use icons on SolidJS
20 lines (19 loc) • 630 B
TypeScript
import type { JSX } from "solid-js";
type SVGSVGElementTags = JSX.SVGElementTags["svg"];
export interface IconTree {
a: SVGSVGElementTags;
c: string;
}
export interface IconProps extends SVGSVGElementTags {
size?: string | number;
color?: string;
title?: string;
style?: JSX.CSSProperties;
}
export interface IconBaseProps extends IconProps {
src: IconTree;
}
export declare type IconTypes = (props: IconProps) => JSX.Element;
export declare const CustomIcon: (props: IconBaseProps) => JSX.Element;
export declare function IconTemplate(iconSrc: IconTree, props: IconBaseProps): JSX.Element;
export {};