@sixphere/lit-element
v1.1.1
Published
Vitamined element based on LitElement.
Downloads
28
Readme
Sixphere Lit Element
Libraries
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