0.0.2 • Published 12 months ago
lit-element-deco v0.0.2
Usage
import {litElement} from '@tc39deco/lit-element';
@litElement()
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 {litElement} from '@tc39deco/lit-element';
@litElement({ intoDaDom: 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 @tc39deco/lit-element
Special thanks
to Glenn for the hyphen idea :-P
0.0.2
12 months ago