1.2.0 • Published 2 years ago

define-custom-element v1.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago