1.2.0 • Published 11 months ago

define-custom-element v1.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
11 months ago

define-custom-element

A simple helper function for defining customElementsV1.

Install

npm install define-custom-element --save

or

yarn add define-custom-element

Usage

import define from 'define-custom-element';

define(class SomeElement extends HTMLElement {
  constructor() {
    super();
    this.attachShadow({mode: 'open'});
    ...
  }
});
1.2.0

11 months ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago