Boilerplate for creating a custom element.
Available on npm as @github/custom-element-element.
$ npm install --save @github/custom-element-element
Import as ES modules:
import '@github/custom-element-element'
Include with a script tag:
<script type="module" src="./node_modules/@github/custom-element-element/dist/index.js">
An example Custom Element. This documentation ends up in the README so describe how this elements works here.
You can event add examples on the element is used with Markdown.
<custom-element></custom-element>
Browsers without native custom element support require a polyfill.
- Chrome
- Firefox
- Safari
- Microsoft Edge
Distributed under the MIT license. See LICENSE for details.