@customElement decorator registers your LitElement class as a custom element by calling customElements.define() under the hood.
Import
Signature
The tag name to register the element under. Must contain a hyphen and follow the
valid custom element name
rules.
Usage
Without decorators
If you prefer not to use decorators, callcustomElements.define() directly after your class definition:
Notes
You must register a custom element before using it in the DOM. If you use
@customElement, registration happens automatically when the module is
imported. Make sure to import the module before referencing the tag in HTML.DOMException.