0.0.0 • Published 9 months ago
@godown/element v0.0.0
@godown/element
Component base class for godown.
Usage
import GodownElement from "@godown/element";
import component from "@godown/element/decorators/component.js";
@component({
tagName: "my-element",
styles: [ /* ...styles */ ],
autoDefine: true
})
class MyElement extents GodownElement {
}
<my-element></my-element>
With config.
import GodownElement from "@godown/element";
import GodownConfig from "@godown/element/config.js";
import godown from "@godown/element/decorators/godown.js";
import styles from "@godown/element/decorators/styles.js";
@godown("element")
@styles(/* ...styles */)
class MyElement extents GodownElement {
static godownConfig = new GodownConfig({
prefix: "my",
});
}
MyElement.define()