1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
/// <reference types="react" />
export interface SVGPathObject {
path: string;
className?: string;
}
export interface IconDefinition {
name?: string;
width: number;
height: number;
svgPath: string | SVGPathObject[];
xOffset?: number;
yOffset?: number;
svgClassName?: string;
}
export interface SVGIconProps extends Omit<React.HTMLProps<SVGElement>, 'ref'> {
title?: string;
className?: string;
}
/**
* Factory to create Icon class components for consumers
*/
export declare function createIcon({ name, xOffset, yOffset, width, height, svgPath, svgClassName }: IconDefinition): React.ComponentClass<SVGIconProps>;
//# sourceMappingURL=createIcon.d.ts.map
|