0.0.0 • Published 9 months ago

@godown/element v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@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()
0.0.2

9 months ago

0.0.1

9 months ago

0.0.0

9 months ago