webcomponents/polyfills


Webcomponents polyfills monorepo

https://webcomponents.org/polyfills

License: BSD-3-Clause

Language: HTML


Build Status Mentioned in Web Components the Right Way

Monorepository for WebComponents v1 polyfills

Note. For polyfills that work with the older Custom Elements and Shadow DOM v0 specs, see the v0 branch of the webcomponentsjs repo.

Note. For polyfills that work with HTML Imports, see the v1 branch of the webcomponentsjs repo.

A suite of polyfills supporting the Web Components specs:

For browsers that need it, there are also some minor polyfills included:

How to Install

Everything

WebcomponentsJS

The entire WebComponents suite can be installed at once and loaded together for maximum compatibility.

More information about how the polyfill bundles, and feature-detecting loader work are in the webcomponentsjs README.

Individually

Individual polyfills can be installed with the @webcomponentsjs/ scope

Custom Elements

npm install @webcomponents/custom-elements

Shadow DOM with ShadyCSS

Note: This polyfill requires manual setup and API calls for style encapsulation

npm install @webcomponents/shadydom @webcomponents/shadycss

HTMLTemplateElement

npm install @webcomponents/template

HTML Imports

⚠️ HTML Imports has been deprecated, and will be removed from Chrome in the future. Please transition to ES Modules! ⚠️

npm install @webcomponents/html-imports

How to Develop

npm install
npm run bootstrap
npm run build

How to Test

npm run build
npm test

Project Statistics

Sourcerank 17
Repository Size 27.1 MB
Stars 235
Forks 49
Watchers 27
Open issues 150
Dependencies 1,849
Contributors 106
Tags 12
Created
Last updated
Last pushed

Top Contributors See all

Daniel Freedman Steve Orvell Russell Bicknell Valdrin Koshi Tim van der Lippe Justin Fagnani Kevin Schaaf Monica Dinculescu Addy Osmani Alexey Rodionov AJ Ortega Nazar Mokrynskyi Jenny Messerly Alexander Marks Peter Burns Eric Bidelman Ian MacLeod Tomek Wytrębowicz Serhii Kulykov Emad Eid

Packages Referencing this Repo

@webcomponents/url
URL parser in JavaScript
Latest release 0.7.4 - Updated - 235 stars
@webcomponents/template
Minimal template polyfills needed by webcomponents.js
Latest release 1.4.1 - Updated - 235 stars
@webcomponents/shadycss
Styling helpers for ShadyDOM
Latest release 1.9.3 - Updated - 235 stars
@webcomponents/shadydom
Shadow DOM polyfill
Latest release 1.7.0 - Updated - 235 stars
@webcomponents/custom-elements
HTML Custom Elements Polyfill
Latest release 1.3.1 - Updated - 235 stars
@isalem/webcomponentsjs-interactive-state
Web Components Polyfills with triggering the ready events on interactive page state
Latest release 2.4.0 - Published - 235 stars
@webcomponents/webcomponentsjs
Web Components Polyfills
Latest release 2.4.0 - Updated - 235 stars
@webcomponents/html-imports
HTML Imports polyfill
Latest release 1.2.2 - Updated - 235 stars

Recent Tags See all

@webcomponents/webcomponentsjs@2.4.0 November 13, 2019
@webcomponents/shadydom@1.7.0 November 13, 2019
@webcomponents/shady-css-scoped-element@0.0.2 November 13, 2019
@webcomponents/shadycss@1.9.3 November 13, 2019
@webcomponents/custom-elements@1.3.1 November 13, 2019
@webcomponents/webcomponentsjs@2.3.0 September 19, 2019
@webcomponents/url@0.7.4 September 19, 2019
@webcomponents/template@1.4.1 September 19, 2019
@webcomponents/shadydom@1.6.1 September 19, 2019
@webcomponents/shadycss@1.9.2 September 19, 2019
@webcomponents/html-imports@1.2.2 September 19, 2019
@webcomponents/custom-elements@1.3.0 September 19, 2019

Something wrong with this page? Make a suggestion

Last synced: 2019-11-13 01:42:43 UTC

Login to resync this repository