nostr-web-components
Version:
collection of web components that provide quick access to basic nostr things
27 lines (26 loc) • 756 B
JavaScript
class NostrEntityLink extends HTMLElement {
static observedAttributes = [];
root;
constructor() {
super();
this.attachShadow({ mode: "open" });
const { shadowRoot } = this;
this.root = document.createElement("div");
shadowRoot.appendChild(this.root);
const span = document.createElement("span");
span.setAttribute("part", "span");
span.textContent = "skjbdsajkdbskajd";
this.root.appendChild(span);
}
connectedCallback() {
this.style.display = "inline-block";
this.style.width = "fit-content";
this.style.height = "fit-content";
}
attributeChangedCallback(_name, _old, _value) {
}
}
window.customElements.define("nostr-entity-link", NostrEntityLink);
export {
NostrEntityLink as default
};