/webcomponents-the-right-way

This is a guide intended to introduce to Web Components. Everyone can contribute here!

MIT LicenseMIT

Web Components the Right Way

Awesome

A curated list of awesome Web Components resources.

Web Components — a suite of different technologies allowing you to create reusable custom elements — with their functionality encapsulated away from the rest of your code — and utilize them in your web apps.

Contents

Web Components the Right Way was made with love by Mateus Ortiz and maintained by Serhii Kulykov

Specifications

Standards

Proposals

CSS Shadow Parts

Form-associated Custom Elements

Constructable Stylesheet Objects

Builtin Modules

  • std-switch - Proposal for <std-switch> HTML element implementing a 'switch' control.
  • std-toast - Proposal for <std-toast> HTML element implementing a 'toast' pop-up notification.

Polyfills

@webcomponents

The polyfills below are maintained by Polymer team.

@ungap

The polyfills below are maintained by ungap project.

Articles

Introduction

Custom Elements

Shadow DOM

HTML Templates

Best Practices

Accessibility

Use Cases

Libraries

Class Based

  • Corpuscule - Small Web Components framework based on decorators.
  • LitElement - Simple base class for creating fast, lightweight web components. Part of the Polymer Project.
  • Lightning Web Components - blazing fast, enterprise-grade Web Components foundation.
  • Omi - Next generation web framework in 4kb JavaScript (Web Components + JSX + Proxy + Store + Path Updating).
  • Polymer - Original web component library by the Polymer Project authors.
  • Skate - Web component library focusing on a functional rendering pipeline and a small footprint.
  • slim.js - Fast & Robust Front-End Micro-framework based on modern standards.
  • Smart Custom Element - UI library for creating custom elements with simple API.

Functional

  • atomico - Small library for the creation of interfaces based on web components using functions and hooks.
  • hybrids - UI library for creating Web Components with simple and functional API.
  • reLift-HTML - Small (3kb) view library allowing to create Web Components and to make HTML pages reactive.
  • osagai - Tiny library for creating Web Components in a functional way.
  • Switzerland - Library allowing to create Web Components in a functional way via middleware functions.
  • ullr - Library for building Web Components with functional programming.

Other

  • custom-element-ts - Create native custom elements using Typescript without using any third party libraries.
  • preact-custom-element - Generate/register a custom element from a preact component.
  • remount - Mount React components to the DOM using custom elements.

Component Libraries

  • Amber Components - Web Components implementation of the Amber Design System.
  • AMP HTML - Web component library for building web pages that render with reliable and fast performance.
  • carbon-custom-elements - Experimental variant of Carbon Design System built with Custom Elements and Shadow DOM.
  • Elix - High-quality, customizable web components for common user interface patterns.
  • LRNWebComponents - ELMS:LN produced web components for any project.
  • Material Web Components - Material Design implemented as Web Components.
  • PatternFly Elements - Collection of flexible and lightweight Web Components, and the tools to build them.
  • UI5 Web Components - Components library providing the enterprise-flavored sugar on top of native APIs.
  • Vaadin components - Evolving set of high-quality web components for building business web applications.
  • Wired Elements - Set of common UI elements with a hand-drawn, sketchy look.

Frameworks

Overview

Angular

Vue

Aurelia

Compilers

  • Stencil - compiler that generates web components.
  • Svelte - compiler which can be configured to generate custom elements.

Books

Tutorials

Miscellaneous

History

The articles below represent a long story of the Web Components specifications on the way towards the standardization. Some of them refer to earlier, so-called "v0" Shadow DOM and Custom Elements specs, and abandoned HTML Imports spec. These materials are here for historical reasons only, they are grouped by years and listed in chronological order.

2017

2016

2015

2014

2013

2012

2011

Who To Follow

Chrome Developers
Polymer
Edge Platform Updates
Web Components
Hayato Ito
Rob Dodson
Eric Bidelman
Justin Fagnani

License

Copyright 2014-2018, All rights reserved.

Code licensed under the: MIT license

@author Mateus Ortiz mteusortiz@gmail.com