Cache for svg parsing intermediates
The name of the icon. By convention, the icon name will be namespaced as so:
"pkg-name:icon-name"
A React component that will create the icon.
A string containing the raw contents of an svg file.
A string containing the raw contents of an svg file.
Get a view of this icon that is bound to the specified icon/style props
a view of this LabIcon instance
Create an icon as a DOM element
A DOM element that contains an (inline) svg element that displays an icon
Remove any rendered icon from the element that contains it
a DOM node into which an icon was previously rendered
the cleaned container
Resolve an icon name or a {name, svgstr} pair into an actual LabIcon.
either a string with the name of an existing icon or an object with {name: string, svgstr: string} fields.
a LabIcon instance
Resolve an icon name or a {name, svgstr} pair into a DOM element. If icon arg is undefined, the function will fall back to trying to render the icon as a CSS background image, via the iconClass arg. If both icon and iconClass are undefined, this function will return an empty div.
a DOM node with the resolved icon rendered into it
Resolve an icon name or a {name, svgstr} pair into a React component. If icon arg is undefined, the function will fall back to trying to render the icon as a CSS background image, via the iconClass arg. If both icon and iconClass are undefined, the returned component will simply render an empty div.
a React component that will render the resolved icon
Resolve a {name, svgstr} pair into an actual svg node.
Toggle icon debug from off-to-on, or vice-versa.
optional boolean to force debug on or off
Generated using TypeDoc
members *