🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@cfware/shadow-element

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cfware/shadow-element

My uhtml based shadow element

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
91
71.7%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 17 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts