@sixphere/lit-element

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @sixphere/lit-element

Weekly Downloads

8

Version

1.1.1

License

MIT

Unpacked Size

121 kB

Total Files

11

Last publish

Collaborators

  • ferjimriv
  • sixphere-codelovers