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