1.1.0 • Published 1 year ago

@cfware/shadow-element v1.1.0

Weekly downloads
64
License
MIT
Repository
github
Last release
1 year ago

@cfware/shadow-element NPM Version

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');
1.1.0

1 year ago

1.0.0

1 year ago

0.17.0

2 years ago

0.16.3

4 years ago

0.16.2

4 years ago

0.16.0

4 years ago

0.16.1

4 years ago

0.15.1

4 years ago

0.15.0

4 years ago

0.14.0

4 years ago

0.13.0

5 years ago

0.12.0

5 years ago

0.11.1

5 years ago

0.11.0

5 years ago

0.10.3

5 years ago

0.10.2

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.9.0

5 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago