Home
Softono

Custom Element Boilerplate

Open source MIT TypeScript
176
Stars
22
Forks
1
Issues
288
Watchers
9 months
Last Commit

 About Custom Element Boilerplate

Boilerplate for creating a custom element.

Platforms

Web Self-hosted

Languages

TypeScript

Links

Need Help Installing Custom Element Boilerplate?

We provide expert installation service for this software. Our team will install, configure, and secure Custom Element Boilerplate on your server. plans start at just $30.

Custom Element Boilerplate

View on GitHub

<custom-element> element

Boilerplate for creating a custom element.

Installation

Available on npm as @github/custom-element-element.

$ npm install --save @github/custom-element-element

Usage

Script

Import as ES modules:

import '@github/custom-element-element'

Include with a script tag:

<script type="module" src="https://raw.githubusercontent.com/github/custom-element-boilerplate/main/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>

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

License

Distributed under the MIT license. See LICENSE for details.