SVG/SVGComponent

SVGComponent represent SVG icon. Use this component for every SVG icon in application.

Source:
Properties:
Name Type Description
context object

Context assigned form SVGProvider

Properties
Name Type Description
svg object
Properties
Name Type Description
loadedSVGs Array
checkSvg function
loadSvg function
getIdFromSrc function
getNameFromSrc function

Methods

componentDidUpdate(prevProps) → {void}

Source:

If src change repeat process from componentWillMount

Parameters:
Name Type Description
prevProps object
Returns:
Type
void

render() → {view}

Source:

Render

Returns:
Type
view

Type Definitions

props

Source:
Properties:
Name Type Attributes Description
src string
className string
onClick function <optional>
Type:
  • object