view demo/src/my-element.ts @ 90:6077fdc9ed44

inv release
author drewp@bigasterisk.com
date Wed, 12 Jan 2022 16:54:15 -0800
parents 4d19a94906d2
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;
  }
}