@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
29 lines • 996 B
TypeScript
import { CanvasIcon, CanvasIconTypes } from '@workday/design-assets-types';
import { BoxProps } from '@workday/canvas-kit-react/layout';
export interface SvgProps extends BoxProps {
src: CanvasIcon;
type: CanvasIconTypes;
/**
* If set to `true`, transform the SVG's x-axis to mirror the graphic
* @default false
*/
shouldMirror?: boolean;
}
export declare const svgStencil: import("@workday/canvas-kit-styling").Stencil<{
shouldMirror: {
true: {
transform: "scaleX(-1)";
};
};
}, {}, {
/** sets width of svg element */
width: string;
/** sets height of svg element */
height: string;
/** sets width and height of svg element */
size: string;
}, never, never>;
/** @deprecated */
export declare const transformColorNameToToken: (color?: string) => string | undefined;
export declare const Svg: import("@workday/canvas-kit-react/common").ElementComponent<"span", SvgProps>;
//# sourceMappingURL=Svg.d.ts.map