0.0.2 • Published 11 months ago

@tc39deco/lit-element v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

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

11 months ago

0.0.1

11 months ago