1.1.1 • Published 6 years ago

@sixphere/lit-element v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Sixphere Lit Element

Version Node version MIT License

Downloads Total downloads

Packagephobia Bundlephobia

Libraries

lit-element


Sixphere Lit Element is a subclass of LitElement with new features:

  • Binding child nodes by reference: You can bind a child node as a property by defining his ref attribute.

Install

npm install '@sixphere/lit-element' --save

How to use?

Use like a super class

import {SixphereLitElement} from '@sixphere/lit-element'

class MyElement extends SixphereLitElement {

    render() {
        return html `
        <div ref="test">
            <p>hello world!</p>
        </div>
        `
    }
}

customElements.define("my-element", MyElement)

License

MIT License © 2019 Sixphere