Skip to main content

CustomIcon

type CustomIcon = object;

A custom button icon, provided as SVG markup for each visual state.

Each value is inlined verbatim into a data:image/svg+xml, source, so the markup must be valid inside a URI

Example​

{
* main: '<svg xmlns="http://www.w3.org/2000/svg" fill="%23000000"/>',
* hover: '<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff"/>',
* }

Properties​

PropertyTypeDescription
mainstringSVG markup for the default state.
hoverstringSVG markup shown while the button is hovered or active.