import {LitElement, html, unsafeCSS} from 'lit'; import {customElement, property} from 'lit/decorators.js'; import comonentStyle from './toggle-button-option.css?inline'; import {classMap} from 'lit/directives/class-map.js'; @customElement('obc-toggle-button-option') export class ObcToggleButtonOption extends LitElement { @property({type: String}) value = 'value'; @property({type: Boolean}) selected = false; onClick() { this.dispatchEvent( new CustomEvent('selected', {detail: {value: this.value}}) ); } override render() { return html` `; } static override styles = unsafeCSS(comonentStyle); } declare global { interface HTMLElementTagNameMap { 'obc-toggle-button-option': ObcToggleButtonOption; } }