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.
- Real World
- Usage Metrics
- Who to follow
- Intro to Web Components
- MDN - Web Components
- The Holy Grail Of Reusable Components: Custom Elements, Shadow DOM, And NPM
- The Power of Web Components
Custom Elements provide a way for authors to build their own fully-featured DOM elements.
- HTML Living Standard: Custom elements
- A Guide to Custom Elements for React Developers
- All about HTML Custom Elements
- Custom Elements v1: Reusable Web Components
- MDN - Using Custom Elements
Shadow DOM describes a method of combining multiple DOM trees into one hierarchy and how these trees interact with each other within a document, thus enabling better composition of the DOM.
- DOM Living Standard: Interface
- DOM Living Standard: Shadow tree
- MDN - Using Shadow DOM
- Open vs. Closed Shadow DOM
- Shadow DOM in depth
- Shadow DOM v1: Self-Contained Web Components
- The Rise of Shadow DOM
- What is the Shadow DOM?
<template> element is used to declare fragments of HTML that can be cloned and inserted in the document by script.
- HTML Living Standard: The
- MDN - <template>: The Content Template element
- MDN - Using templates and slots
CSS Shadow Parts allow developers to expose certain elements inside Shadow DOM for styling purposes.
- W3C First Public Working Draft
- CSS Shadow Parts are coming!
- MDN -
::part()CSS pseudo element
- MDN -
- ::part and ::theme, an ::explainer
- @webcomponents/custom-elements - Custom Elements polyfill by Polymer team.
- document-register-element - Custom Elements polyfill by Andrea Giammarchi.
- @corpuscule/custom-builtin-elements - Customized built-in elements polyfill by CorpusculeJS.
- @ungap/custom-elements-builtin - Customized built-in elements polyfill by ungap project.
- @webcomponents/shadydom - ShadowDOM v1 shim.
- @webcomponents/shadycss - ShadowDOM style encapsulation shim.
- @lwc/synthetic-shadow - Shadow DOM polyfill by LWC.
- @webcomponents/template - Minimal polyfill for
- @ungap/import-node - An
importNodepolyfill for IE11 by ungap project.
- Accessibility for Web Components
- How to Make Accessible Web Components — a Brief Guide
- The future of accessibility for custom elements
- The Guide to Accessible Web Components
- Web Components and the Accessibility Object model (AOM)
- Web components still need to be accessible
- Custom Element Best Practices
- Gold Standard Checklist for Web Components
- Guidelines for creating web platform compatible components
- How to Publish Web Components to NPM
- Open Web Components Recommendations
- Publishing Web Components to NPM
- Build a Story Web Component with LitElement
- Building Custom Elements with Web Components for the 2020 Elections
- Creating Web Components with Stencil
- Handling data with Web Components
- How to use D3js with WebComponents
- Open Web Components: Codelabs
- Recreating The Arduino Pushbutton Using SVG And
- Snake-Eating Game Making with Web Components of Omi and MVP Architecture
- Storybook for web components on steroids
- Testing Workflow for Web Components
- generic-components - Collection of generic web components with a focus on accessibility, and ease of use.
- howto-components - Collection of web components that implement common web UI patterns.
- open-wc code examples - Collection of best practices and design patterns for developing web components.
- vanilla-retro-js - Vanilla JS UI component library of HTML deprecated tags.
- web-components-examples - Series of web components examples, related to the MDN web components documentation.
- A deep analysis into isomorphic, autonomous cross-framework usage #MicroFrontends
- Frankenstein Migration: Framework-Agnostic Approach (Part 1)
- Frankenstein Migration: Framework-Agnostic Approach (Part 2)
- Generating Config driven Dynamic Forms using Web Components
- Hiding internal framework methods and properties from web component APIs
- How to deliver Custom Elements
- Making Web Components for Different Contexts
- Supporting both automatic and manual registration of custom elements
- Web Components — the right way
- Styling a Web Component
- Styling in the Shadow DOM With CSS Shadow Parts
- Styling is critical to web component reuse, but may prove difficult in practice
- Thinking Through Styling Options for Web Components
- Web Standards Meet User-Land: Using CSS-in-JS to Style Custom Elements
- Custom Elements Everywhere
- Custom Elements That Work Anywhere
- Web Components aren't a framework replacement - they're better than that
- Web Components: Seamlessly interoperable
- Apple Just Shipped Web Components to Production and You Probably Missed It
- Bringing Order to Web Design Chaos (with Web Components)
- Implementing a Design Language System with Stencil.js
- ING ❤ Web Components
- ING Open-Sources Lion, Its White-Label Web Component Library – Q&A with Thomas Allmer
- Lessons Learned, making our app with Web Components
- Looking back on five years of web components
- Making Web Components Work
- Shipping Web Components in 2020
- The Firefox UI is now built with Web Components
- Web Components at Scale at Salesforce: Challenges Encountered, Lessons Learnt
- web.dev engineering blog #1: How we build the site and use Web Components
- AMP - Web component framework for easily creating user-first websites, stories, ads, emails and more.
- Apollo Elements - Custom elements for using Apollo GraphQL with various web components libraries.
- AXA Pattern Library - AXA CH UI components library built with Web Components.
- Blackstone UI - Web components for creating interfaces by Blackstone Publishing.
- Brightspace UI core - Collection of web components for building Brightspace applications.
- Clever components - Collection of Web Components made by Clever Cloud.
- DataFormsJS - Standalone Components for SPA routing, displaying data from web services, and more.
- elements-sk - Collection of custom elements for "a la carte" web development.
- Elix - High-quality, customizable web components for common user interface patterns.
- Iooxa - Web components for interactive scientific writing, reactive documents and explorable explanations.
- Lion Web Components - Set of highly performant, accessible and flexible Web Components.
- LRNWebComponents - ELMS:LN produced web components for any project.
- Lume - Custom elements for defining 2D or 3D scenes rendered with CSS3D or WebGL.
- Microsoft Graph Toolkit - Collection of web components for the Microsoft Graph.
- Nightingale - Data visualisation web components for the life sciences.
- Nuxeo Elements - Components for building web applications with Nuxeo using Web Components.
- TEI Publisher Components - Collection of web components used by TEI Publisher and apps generated by it.
- Tradeshift Elements - Reusable Tradeshift UI Components as Web Components.
- 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.
- Wokwi Elements - Web Components for Arduino and various electronic parts.
- Amber Components - Web Components implementation of the Amber Design System.
- Bolt Design System - Twig and Web Component-powered UI components, reusable visual styles and tooling.
- Calcite Components - Shared Web Components for Esri's Calcite design framework.
- Carbon Custom Elements - Experimental variant of Carbon Design System built with Web Components.
- Chameleon Web Components - Collection of framework-agnostic elements based on the Chameleon Design System.
- Crayons - Collection of web components that adheres to the Freshworks Design System.
- Helix UI - Web Component library for the Helix Design System.
- Material Web Components - Material Design implemented as Web Components.
- NuML | NUDE Elements - HTML Framework and Design System based on Web Components and runtime CSS generation.
- PatternFly Elements - Collection of flexible and lightweight Web Components based on the Unified Design Kit.
- Pearson Web Components - Pearson's shareable component library implementing Gravity design system.
- Spectrum Web Components - Adobe Spectrum design language implementation built with Web Components.
- UI5 Web Components - Set of reusable UI elements implementing SAP Fiori Design Guidelines.
- Zooplus web components - Set of web components that implement Z+ shop style guide.
- How we chose to build our Design System using StencilJS Web Components
- Reasons Web Components are perfect for a big company
- 5 Reasons Web Components Are Perfect for Design Systems
- Web components: the secret ingredient helping power the web
- Web Components for Enterprise. Part 1: Salesforce, Oracle, SAP
- Web Components for Enterprise. Part 2: Nuxeo, Ionic, Vaadin
- Why I use Web Components - My use cases
- Why we use Web Components by @viljamis
- Why we use Web Components by @maxlynch
- Corpuscule - Small Web Components framework based on decorators.
- DNA - Progressive Web Components library.
- 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.
- 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.
- Stencil - Compiler for generating Web Components.
- Tonic - Minimalist, stable, audit friendly component framework.
- atomico - Small library for the creation of interfaces based on web components using functions and hooks.
- fuco - Functional component like React, but for Web Components.
- haunted - React's Hooks API implemented for web components.
- hybrids - UI library for creating Web Components with simple and functional API.
- ember-custom-elements - Render Ember and Glimmer components using custom elements.
- preact-custom-element - Generate/register a custom element from a preact component.
- react-shadow - Utilise Shadow DOM in React with all the benefits of style encapsulation.
- remount - Mount React components to the DOM using custom elements.
- @riotjs/custom-elements - Simple API to create vanilla custom elements with Riot.js.
- All the Ways to Make a Web Component
- web-components-benchmark - Benchmark Web Components technologies with various examples.
- web-components-todo - The same todo application built in different Web Components libraries for benchmark purpose.
- Angular Elements Overview
- Building Custom Elements / Web Components with Angular 6
- How to use Angular ngModel and ngForms with WebComponents
- Using Web Components in Angular
- Web Components With Angular Ivy In 6 Steps
- Create & Publish Web Components With Vue CLI 3
- Get started with Vue web components
- Integrate Web Components with Your Vue.js App
- Using Web Components in Vue
- Create Open Web Components - Web component project scaffolding.
- custom-element-boilerplate - Boilerplate for creating a custom element.
- hello-web-components - Simple starter hello world web component written in TypeScript.
- nutmeg - Build, test, and publish vanilla Web Components with a little spice.
- Cypress Daywalker - Web Components and Shadow DOM support for Cypress.
- query-selector-shadow-dom - querySelector that can pierce Shadow DOM roots, useful for automated testing.
- web-component-analyzer - CLI that analyzes web components and emits documentation / diagnostics.
- Web Components in Action - Book by Ben Farrell, available at Manning early release program.
- Web Component Essentials - Book by Cory Rylan, early preview edition available at Leanpub.
"Let's Build Web Components!" by Benny Powers
"Web components: from zero to hero" by Pascal Schilp
"HowTo: Components" by Web Fundamentals
CSS tricks article series by Caleb Williams
Angular Elements article series by Manfred Steyer
- Code[ish], episode 38: Building with Web Components
- Frontend Happy Hour, episode 62: Web Components - shots of shadow DOM
- Labs Talk - Web Components with Peter Muessig
- Are Web Components the Betamax of web development? by @lostinbrittany
- Designing Standard Systems by @stefsull and @bferrua
- Frontend Architecture for Scalable Design Systems by @salem_cobalt
- lit-apollo: Data-Driven Components that Use the Platform by @PowersBenny
- Mastering Shadow DOM by @Martine_Dowden
- Modernizing Large Frontends with Web Components by @samjulien
- Using Web Components to Build a Framework-agnostic UI Library by @brianbouril and @danciupuliga
- Web Components and the AOM by @LeonieWatson
- Web Components and Styles Scoping by @bashmish
- Web Components can do that?! by @vogloblinsky
- Web Components: Introduction and State of the Art by @webcomp_dev
- Better Apps: Delivering Universal UI Patterns as Web Components by @janmiksovsky
- Custom Web Shadow Elements, or Whatever… by @aerotwist
- Styling and Theming Web Components by @justinfagnani
- Web Components at Enterprise Scale by @diervo
- Chrome Platform Status:
- Chrome Platform Status:
- Chrome Platform Status:
- Form Participation API Explained - Document by Google Chrome team.
- Form-associated custom elements - Feature in Chrome platform status.
- Specification Draft
- Constructable Stylesheets - Feature in Chrome platform status.
- bruck - Prototyping system built with web components and the Houdini Paint API.
- Vaadin Directory - Publish, discuss and rate web components
- webcomponents.dev - Your studio for Web Components.
- webcomponents.org - Discuss & share web components.
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.
- A history of the HTML slot element
- Web Components in 2019: An Overview of the Most Exciting Proposals for the Web Platform Related to Web Components
- Styling Accessibility: A Web Components Approach
- Web Components 101: An Introduction to Web Components
- Web Components in 2018
- Web Components Introduction: Creating Custom HTML Elements in 2018
- Web Components: The Long Game
- An intro to web components with otters
- The broken promise of Web Components
- Regarding the broken promise of Web Components
- Introducing Custom Elements
- The Case for Custom Elements: Part 1
- The Case for Custom Elements: Part 2
- Demythstifying Web Components
- What's New in Shadow DOM v1 (by examples)
- Understanding Web Components
- Introducing Slot-Based Shadow DOM API
- Web Components and their role in the future of web development
- Microsoft Edge and Web Components
- Bringing componentization to the web: An overview of Web Components
- The state of Web Components
- A No-Nonsense Guide to Web Components
- Mozilla and Web Components: Update
- The State of the Componentised Web
- Building an Accessible Disclosure Button – using Web Components
- Web Components and you – dangers to avoid
- The Web's Declarative, Composable Future
- The Shadow DOM Diaries
- A Detailed Introduction To Custom Elements
Copyright 2014-2018, All rights reserved.
Code licensed under the: MIT license
@author Mateus Ortiz [email protected]