UNPKG

wired-elements

Version:

Collection of hand-drawn sketchy web components

8 lines (7 loc) 389 B
import { customElement } from 'lit-element'; import { WiredIcon } from './WiredIcon'; // We separate the class from its registration as a custom element, // so that WiredIcon class can be extended. // Otherwise, CustomElementRegistry would register it twice and would throw an error. window.customElements.get('wired-icon') || customElement('wired-icon')(WiredIcon); export { WiredIcon };