Web Component: j-SVGIcons

  • Info
  • HTML
  • JS
  • CSS
  • Meta


This component registers a new Web component in the form <ui-svgicon name="icon_name"></ui-svgicon>.


  • url {String} a URL address to the SVG file (default: empty)
  • size {Number} a default image width (default: empty)

Attributes <ui-svgicon>:

  • name {String} optional, icon name
  • size {Number} optional, a size of image (default: config.size)
  • selected {String} optional, selected icon name (it will be displayed if the parent element will contain .selected class)