view demo/src/my-element.ts @ 89:4d19a94906d2

redo demo/ with vitejs (so nice)
author drewp@bigasterisk.com
date Wed, 12 Jan 2022 16:52:10 -0800
parents
children
line wrap: on
line source

import { html, css, LitElement } from "lit";
import { customElement } from "lit/decorators.js";
export { StreamedGraph } from "@bigasterisk/streamed-graph";

@customElement("my-element")
export class MyElement extends LitElement {
  static styles = css`
    :host {
    }
  `;

  render() {
    return html`
      <h1>streamed-graph demo</h1>
      <streamed-graph
        url="/collector/graph/reposync"
        view="repos.n3"
        expanded="true"
      ></streamed-graph>
    `;
  }
}

declare global {
  interface HTMLElementTagNameMap {
    "my-element": MyElement;
  }
}