0.0.9 • Published 2 years ago

define-custom-element-decorator v0.0.9

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Usage

import {customElement} from 'define-custom-element-decorator';

@customElement()
class MySuperCoolElement extends LitElement {

}

// Now you can use <my-super-cool-element> anywhere in your app.

You can also decide to inject your element when you create an instance.

import {customElement} from 'define-custom-element-decorator';

@customElement({ inject: true })
class MyServiceElement extends LitElement {

}

// Creating an object will make your element be automatically
// prepended inside the body of your document.
export const service = new MyServiceElement();

Installation

npm add -D define-custom-element-decorator

Special thanks

to Glenn for the hyphen idea :-P

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago