packageDocumentation module import "./SvgSprite.scss" ; import classnames from "classnames" ; import * as React from "react" ; import { CommonProps } from "../utils/Props" ; public export interface SvgSpriteProps extends CommonProps { /** Source for the Svg */ src : string ; } public export class SvgSprite extends React . PureComponent < SvgSpriteProps > { public override render ( ) { const className = classnames ( "core-icons-svgSprite" , this . props . className ) ; return ( < svg className = { className } style = { this . props . style } width = "100%" height = "100%" > < use xmlnsXlink = "http://www.w3.org/1999/xlink" xlinkHref = { this . props . src } / > < /svg>); } }