Skip to content

Instantly share code, notes, and snippets.

@marckris
marckris / b-icon.js
Last active December 31, 2019 08:23
Using SVG icons
customElements.define ("b-icon", class extends HTMLElement
{
static get observedAttributes ()
{
return ["name", "color", "size"]
}
_set_icon ()
{
let name = this.getAttribute ("name")