3.0.0 • Published 6 years ago

no-webcomponents v3.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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 for a demo usage of this element.