@itwin/core-react
Version:
A react component library of iTwin.js UI general purpose components
26 lines • 1.32 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Icon
*/
import "./SvgPath.scss";
import classnames from "classnames";
import * as React from "react";
/** Svg element wrapper with specified Svg paths.
* @public
* @deprecated in 4.15.0. Not used by AppUI. Use `@itwin/itwinui-icons-react` package or svg element directly.
*/
// eslint-disable-next-line @typescript-eslint/no-deprecated
export class SvgPath extends React.PureComponent {
render() {
const className = classnames("core-icons-svgPath", this.props.className);
const viewBox = `0 0 ${this.props.viewBoxWidth} ${this.props.viewBoxHeight}`;
return (React.createElement("svg", { className: className, style: this.props.style, width: "100%", height: "100%", viewBox: viewBox },
React.createElement("g", null, this.props.paths.map((path, index) => {
return React.createElement("path", { d: path, key: index });
}))));
}
}
//# sourceMappingURL=SvgPath.js.map