import { LitElement, html, css } from 'lit'; import { customElement } from 'lit/decorators.js'; @customElement('nav-bar') export class NavBar extends LitElement { static styles = css` nav { background: #222; color: white; display: flex; justify-content: space-between; padding: 1rem; } a { color: white; margin-right: 1rem; text-decoration: none; } `; navigate(path: string) { this.dispatchEvent(new CustomEvent('nav', { detail: { path }, bubbles: true, composed: true })); } render() { return html` `; } }