Working Examples, Snippets, Collections and Exploration of WebComponents.
The web components consists of three main technologies, which can be used together to create versatile custom elements with encapsulated functionality that can be reused wherever you like without fear of code collisions.
These functions are generally implemented and available in most browsers.
-
The
Custom Elementsis used to create the Custom component's fully valid HTML tag.Note: The custom name must contain a dash (-) (E.g:
custom-element). -
The
Shadow Domisolates theCustom Elementstag from other elements.Note: The Isolation works similar to
<iframe>. -
The
Html templatesare used for the giving the functionality, styling to theCustom Elements.