icon.gl
Version:
icon.gl is a icon library and framework developed by Scape Agency.
19 lines (18 loc) • 615 B
TypeScript
import * as Icons from "../icons";
type IconProps = {
name: keyof typeof Icons;
size?: number;
color?: string;
className?: string;
otherAttributes?: Record<string, string>;
};
declare class Icon {
private static cache;
static getIconByKey(key: string): string | null;
static getIcon(props: IconProps): string;
static withAccessibility(svgString: string, label: string): string;
static getCachedIcon(props: IconProps): string;
private static getStyleAttribute;
static applyStylesToSvg(svgString: string, styles: Record<string, string>): string;
}
export default Icon;