• Stars
    star
    2,636
  • Rank 16,716 (Top 0.4 %)
  • Language
  • License
    Creative Commons ...
  • Created over 9 years ago
  • Updated 30 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A curated list of awesome Web Components resources.

Awesome Web Components Awesome

A curated list of awesome Web Components resources.

Note This project was previously named "Web Components the Right Way"

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

Introduction

Standards

Custom Elements

Custom Elements provide a way for authors to build their own fully-featured DOM elements.

Shadow DOM

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.

HTML Templates

<template> element is used to declare fragments of HTML that can be cloned and inserted in the document by script.

CSS Shadow Parts

CSS Shadow Parts allow developers to expose certain elements inside Shadow DOM for styling purposes.

Guides

Accessibility

Best Practices

Codelabs

Examples

  • 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.
  • Nude UI - Collection of accessible, customizable, ultra-light web components.
  • 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.

Articles

Architecture

Interoperability

Limitations

Styling

Real World

Case Studies

Components

  • <api-viewer> - API documentation and live playground for Web Components.
  • <chess-board> - Standalone chess board web component.
  • <css-doodle> - Web component for drawing patterns with CSS.
  • <dark-mode-toggle> - Custom element that allows to create a dark mode toggle or switch.
  • <emoji-picker> - Lightweight emoji picker, distributed as a web component.
  • <fg-modal> - Accessible modal dialog web component.
  • <file-viewer> - Web component built with Svelte to view files.
  • <json-viewer> - Web component to visualize JSON data in a tree view.
  • <lite-youtube> - Lite YouTube embed with a focus on visual performance.
  • <midi-player> - MIDI file player and visualizer web components.
  • <model-viewer> - Web component for rendering interactive 3D models.
  • <player-x> - Media player web component.
  • <progressive-image> - Custom element to progressively enhance image placeholders.
  • <range-slider> - Accessible range slider custom element with keyboard support.
  • <rapi-doc> - Web component for creating documentation from OpenAPI Specification.
  • <shader-doodle> - Web component for writing and rendering shaders.
  • <theme-switch> - Animated toggle button to switch between light, dark, and system theme.
  • <trix-editor> - Rich text editor custom element for everyday writing.
  • <vime-player> - Customizable, extensible, accessible and framework agnostic media player.
  • <web-vitals> - Bring web vitals quickly into your page using custom elements.

Component Libraries

Design Systems

Use Cases

Libraries

Class Based

  • DNA - Progressive Web Components library.
  • element-js - Simple and lightweight base classes for web components with a beautiful API.
  • FAST Element - Lightweight library for building performant, memory-efficient, standards-compliant Web Components.
  • Forge Core - Building blocks and utilities that are used when building Forge Web Components.
  • Joist - Set of small libraries designed to add the bare minimum to web components to make you productive.
  • Lit - Simple library for building fast, lightweight web components.
  • 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).
  • Panel - Web Components + Virtual DOM: web standards for powerful UIs.
  • 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.

Functional

  • atomico - Small library for the creation of interfaces based on web components using functions and hooks.
  • haunted - React's Hooks API implemented for web components.
  • hybrids - UI library for creating Web Components with simple and functional API.
  • Solid Element - Library that extends Solid adding Custom Web Components and extensions.

Integrations

Benchmarks

Frameworks

Angular

React

Vue

Svelte

Ecosystem

Meta Frameworks

  • AMP - Web component framework to easily create user-first experiences for the web.
  • Enhance - Web standards-based HTML framework for building lightweight web applications.
  • luna-js - SSR framework that makes working with the WebComponents standard a breeze.
  • Rocket - Modern web setup for static sites with a sprinkle of JavaScript.
  • Web Components Compiler - Compiler to make server-side rendering of native web components easier.
  • WebC - Framework-independent standalone HTML serializer for generating markup for web components.

Starter Kits

Testing Solutions

Tools

Books

Tutorials

Insights

Podcasts

Presentations

Talks

Usage Metrics

Proposals

Form-associated Custom Elements

Constructable Stylesheet Objects

Custom State Pseudo Class

Miscellaneous

  • bruck - Prototyping system built with web components and the Houdini Paint API.
  • Vaadin Directory - Publish, discuss and rate web components
  • webcomponents.org - Discuss & share web components.

Archive

Polyfills

Modern browsers supports web components standards without any of the polyfills listed below. The only notable exception is that customized built-in elements are rejected by WebKit (Safari).

Custom Elements polyfills

Customized Built-in Elements polyfills

Shadow DOM shims

HTML Templates polyfills

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.

2019

2018

2017

2016

2015

2014

2013

2012

2011

Who To Follow

Polymer
Stencil
open-wc.org
webcomponents.dev
Justin Fagnani
Viljami Salminen
Jan Miksovsky
Serhii Kulykov

Maintainers

More Repositories

1

awesome-lit

A curated list of awesome Lit resources.
1,299
star
2

vanilla-colorful

A tiny color picker custom element for modern web apps (2.7 KB) 🎨
TypeScript
731
star
3

vanilla-hamburger

Animated hamburger menu icons for modern web apps (1.8 KB) πŸ”
TypeScript
120
star
4

polymer3-webpack-starter

Polymer 3 starter built with Vaadin components and Vaadin.Router library, using webpack and modern tools
JavaScript
101
star
5

aybolit

Lightweight web components library built with LitElement.
JavaScript
100
star
6

webcomponents.today

A curated collection of Web Components resources.
JavaScript
80
star
7

lit-components

Moved to https://github.com/vaadin/component-mixins
JavaScript
60
star
8

lit-vaadin-helpers

A set of helpers for using Vaadin web components with Lit 2.
TypeScript
10
star
9

ts-vaadin-examples

Examples for using Vaadin components with TypeScript
TypeScript
8
star
10

pack

Polymer App Creation Kit
HTML
8
star
11

wc-jest-puppeteer-demo

JavaScript
5
star
12

polylit

An experiment to use Polymer based mixins with Lit.
JavaScript
4
star
13

a11y-vaadin-playground

Demo app showcasing accessibility fixes to Vaadin web components.
HTML
4
star
14

lit-overlays

Prototyping a set of overlay components with LitElement & TS
TypeScript
3
star
15

webpack-wc-demo

JavaScript
3
star
16

stylelint-config-polymer

shareable stylelint config for Polymer elements
JavaScript
2
star
17

elements-viewer

Vaadin core components demos & API docs https://web-padawan.github.io/elements-viewer/?vaadin-button#docs
HTML
2
star
18

fusion-wtr

TypeScript
1
star
19

a11y-vaadin-proto

JavaScript
1
star
20

npm-stats-training

HTML
1
star
21

colorizr

a WIP demo project built with Polymer 1.x
HTML
1
star
22

web-padawan.github.io

Homepage
Nunjucks
1
star
23

component-mixins

Moved to vaadin/component-mixins
TypeScript
1
star
24

hermione-esm

hermione plugin that starts @web/dev-server before running tests
JavaScript
1
star
25

pnpm-resolutions

An example how to make yarn resolutions work with pnpm
JavaScript
1
star
26

npm-downloads

JavaScript
1
star
27

skystart

frontend project template
CSS
1
star
28

components-flowchart

Visualise hierarchical relationships within Vaadin components.
1
star
29

ngplugins

plugins for NG CMS
PHP
1
star
30

shadow-examples

Examples of using Shadow DOM
HTML
1
star
31

polymer-sort-and-search

React Challenge #1 task built with Polymer
HTML
1
star