import {LitElement, html, unsafeCSS} from 'lit'; import {customElement, property} from 'lit/decorators.js'; import compentStyle from './navigation-item.css?inline'; import {classMap} from 'lit/directives/class-map.js'; import {ifDefined} from 'lit/directives/if-defined.js'; @customElement('obc-navigation-item') export class ObcNavigationItem extends LitElement { @property({type: String}) label = 'Label'; @property({type: String}) href: string | undefined; @property({type: Boolean}) checked = false; onClick() { dispatchEvent(new CustomEvent('click')); } override render() { return html` ${this.label} `; } static override styles = unsafeCSS(compentStyle); } declare global { interface HTMLElementTagNameMap { 'obc-navigation-item': ObcNavigationItem; } }