no-webcomponents

3.0.0 • Public • Published

no-webcomponents

NPM Version NPM Downloads MIT

Self-hiding custom element used to display an error if custom elements are not supported.

This takes advantage of the fact that legacy browsers treat unknown tags the same as a <div>. This means that without polyfills those browsers will display the contents of <no-webcomponents>. When custom elements and shadow dom v1 are supported it is hidden.

Install

$ npm install no-webcomponents

Usage

See gh-pages (source) for a demo usage of this element.

Package Sidebar

Install

npm i no-webcomponents

Weekly Downloads

4

Version

3.0.0

License

MIT

Unpacked Size

3.24 kB

Total Files

5

Last publish

Collaborators

  • coreyfarrell