npm.io
0.0.2 • Published 3 years ago

@tc39deco/lit-element

Licence
—
Version
0.0.2
Deps
0
Size
2 kB
Vulns
0
Weekly
0

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