File: createIcon.d.ts

package info (click to toggle)
cockpit 355-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 311,568 kB
  • sloc: javascript: 774,787; python: 40,655; ansic: 35,157; cpp: 11,141; sh: 3,512; makefile: 580; xml: 261
file content (23 lines) | stat: -rw-r--r-- 699 bytes parent folder | download | duplicates (22)
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