@ducor/react
Version:
admin template ui interface
17 lines (16 loc) • 816 B
TypeScript
import React from "react";
export type svgAttributeValue = string | number | boolean;
export interface SVGElement {
type: "element" | "text";
tagName: null | "svg" | "circle" | "rect" | "path" | "line" | "polygon" | "polyline" | "ellipse" | "g" | "text" | "defs" | "use" | "symbol" | "mask" | "linearGradient" | "radialGradient" | "stop" | "clipPath" | "filter" | "image" | "foreignObject" | "style" | "script" | "tspan" | "a" | "view" | "switch" | "animate" | "animateTransform" | "animateColor" | "set" | string;
attributes: Record<string, svgAttributeValue>;
children?: SVGElement[] | string;
}
interface IconProps {
name: string;
width?: string | number;
height?: string | number;
className?: string;
}
declare const Icon: React.FunctionComponent<IconProps>;
export default Icon;