How to build software using Web Components

Code web components
  1. Create a class which extends a standard HTMLElement.
  2. Register it with a tag name using customElements.define(yourTagName, YourComponent).
Style web components

To set the default style of a web component:

Customize web components style

To customize an existing style of the web component from the light DOM, you can: