Skip to content

6phere/lit-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Base custom element based on lit-element

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published