v 0.2.0

@event


A decorator that creates an EventEmitter on the target element.

The EventEmitter can be used to dispatch custom events from the target element.

@event({ name: 'my-custom-event', bubbles: true, composed: true })
customEvent!: EventEmitter<RadiantEventDetail>;
  
connectedCallback() {
    this.customEvent.emit({ detail: 'Hello, World!' });
}