@cfware/shadow-element
v1.1.0
Published
My uhtml based shadow element
Downloads
83
Readme
@cfware/shadow-element 
My uhtml based shadow element
Usage
This module makes use of public class fields.
import ShadowElement, {html, template, css, adoptedStyleSheets, define} from '@cfware/shadow-element';
class MyElement extends ShadowElement {
static [adoptedStyleSheets] = [
css`
:host {
background: blue;
}
`
];
get [template]() {
return html`I'm blue`;
}
}
MyElement[define]('my-element');