awesome-lit

Web component library guide

A curated list of resources and tools for building fast, lightweight web components using Lit

A curated list of awesome Lit resources.

GitHub

2k stars
77 watching
86 forks
last commit: about 2 years ago
Linked from 3 awesome lists

awesomeawesome-listlit-html

Awesome Lit / General resources

Documentation
Tutorials
Playground
Blog

Awesome Lit / Community

Discord
GitHub18,944almost 2 years ago
GitHub Discussions18,944almost 2 years ago
Twitter
Stack Overflow
YouTube

Awesome Lit / Overview

Lightning-fast templates & Web Components: lit-html & LitElement
Lit 2.0: Meet Lit, all over again!
Announcing Lit 2 stable release

Awesome Lit / Starter Templates

LitElement JavaScript starter192about 2 years agoSample component using LitElement with JavaScript
LitElement TypeScript starter510about 2 years agoSample component using LitElement with TypeScript
hello-web-components26almost 2 years agoSimple starter web component written in TypeScript using Lit
Lit Sass JavaScript Starter1almost 4 years agoProject that has a simple setup for SASS + JS + Lit, using Rollup
Lit Sass TypeScript Starter25almost 4 years agoProject that has a simple setup for SASS + TS + Lit, using Rollup
Lit Webpack Starter10about 2 years agoStarter for multipage apps with Lit and Typescript, using Webpack
Open Web Components GeneratorStarter app based on Open Web Components Recommendations
pwa-starter1,174almost 2 years agoLitElement edition of the PWABuilder pwa-starter
pwa-lit-template181about 3 years agoBuild Progressive Web Applications following the modern web standards
Vite Lit Element TS SASS73over 3 years agoExample Vite project using Lit 2, Typescript, and SASS
Vite Lit Starter69,303almost 2 years agoLit based template preset for Vite
Vite Lit TS Starter69,303almost 2 years agoLit and TypeScript based template preset for Vite

Awesome Lit / Codelabs

Build a Brick Viewer with lit-element
Build a Story Component with lit-element
From Web Component to Lit Element
lit-html & lit-element: basics
lit-html & lit-element: intermediate
Lit for React Developers

Awesome Lit / Tutorials

Building A Retro Draggable Web Component Using Lit
Building a Rich Text Editor with Lit
Draggable DOM with Lit
Getting started with LitElement and TypeScript
Here's a minimalist no-frills Redux Toolkit & LitElement example
JSON to HTML Table with Lit
lit-html Part 1 - A solution for DOM management in web components
lit-html Part 2 - Working with attributes and properties
Lit and Figma
Lit and Flutter
Lit and Monaco Editor
Lit and VSCode Extensions
Lit Sheet Music
Navigation Lifecycle using Vaadin Router, LitElement and TypeScript
Recreating The Arduino Pushbutton Using SVG And <lit-element>
Routing Management with LitElement and TypeScript
Some things to know about Lit

Awesome Lit / Examples

Lit Native41almost 5 years agoReuse Lit web components on native platforms
Lit Node Editor21almost 5 years agoNode editor built with canvas API and simple graph data structure
Lit 3D Piano20over 4 years ago3D Piano built with Lit, Three.js and Tone.js
Open Web Components ExamplesCode examples of common patterns using Lit
Polymer → Lit Migration GuideCode examples showing migration guidance from Polymer to Lit
Vite + RxDB + Lit5about 5 years agoMinimal example to get RxDB running with Vite

Awesome Lit / Lit Labs

@lit/localizeLibrary and command-line tool for localizing web applications built using Lit
@lit-labs/ssrPackage for server-side rendering Lit templates and components
@lit-labs/motionLit directives for making things move
@lit-labs/reactReact integration for Web Components and reactive Lit controllers
@lit-labs/scoped-registry-mixinMixin for LitElement that integrates with the speculative Scoped CustomElementRegistry polyfill to evaluate the proposal and facilitate feedback
@lit-labs/taskController for Lit that renders asynchronous tasks
@lit-labs/virtualizerPackage that provides virtual scrolling for Lit

Awesome Lit / Extensions

@adobe/lit-mobxMixin and base class for using mobx with Lit
@apollo-elements/lit-apolloLitElement integrations with Apollo GraphQL
@lit-app/stateLean and simple global State management for Lit 2
@shoelace-style/localize57about 2 years agoA micro library for localizing custom elements, providing directives for Lit
@stefanholzapfel/lit-stateLightweight reactive state management for Lit 2
@vaadin/formSet of utilities for building forms with TypeScript and Lit
dark-theme-utilsUseful utilities for dark mode built with Web Components
exomeState manager for deeply nested states that supports Lit
pure-lit26almost 2 years agoRegister your Lit elements as pure functions
lit-element-effectEffect hooks for LitElement
lit-element-state-decouplerUtility for state handling outside of the component for LitElement
lit-redux-routerDeclarative way of routing for Lit powered by pwa-helpers and Redux
lit-svelte-storesLit controller to use svelte stores as state management
lit-vaadin-helpersHelpers for using Vaadin web components with Lit 2
ullr63almost 2 years agoBuild Web Components with functional programming using Lit

Awesome Lit / Design Systems

AXA Pattern Library125almost 3 years agoAXA CH UI components library built with LitElement
Brightspace UI core66almost 2 years agoCollection of web components for building Brightspace applications
Carbon Web Components478over 3 years agoCarbon Design System variant on top of Web Components
Clarity Core Web Components169almost 2 years agoSuite of web components for Clarity Design System
Kor274over 3 years agoAn open source Design System and lightweight UI Component Library
Lion1,777almost 2 years agoHighly performant, accessible and flexible Web Components
Material Web Components9,441almost 2 years agoMaterial Design implemented as Web Components
Momentum UI Web Components201almost 2 years agoSet of UI components based on Momentum Design
Outline Design System129over 2 years agoWeb component based design system starter kit
Pharos Design System123almost 2 years agoJSTOR's design system to create cohesive, supportive, and beautiful experiences
Red Hat Design System104almost 2 years agoWeb components for building uniform experiences with the Red Hat brand
Shoelace13,005almost 2 years agoCollection of professionally designed UI components built on a framework-agnostic technology
Spectrum Web Components1,301almost 2 years agoAdobe Spectrum design language implementation built with LitElement
UI5 Web Components1,582almost 2 years agoEnterprise-flavored sugar on top of native APIs!

Awesome Lit / Component Libraries

Apollo Elements416over 2 years agoCustom elements meet Apollo GraphQL
Blackstone UI91almost 2 years agoWeb components for creating interfaces built with lit-html and LitElement
Chartjs Web ComponentsWeb components for chartjs
Clever components222almost 2 years agoCollection of Web Components made by Clever Cloud
Curvenote182over 3 years agoWeb components for creating interactive scientific articles
Dile Components83almost 2 years agoGeneral use Web Components for websites and applications
ESP Web Tools458almost 2 years agoAllow flashing ESPHome or other ESP-based firmwares via the browser
Furo Webcomponents12almost 2 years agoEnterprise ready set of web components which work best with Eclipse Furo
Fusion Web Components12almost 2 years agoSer of web components used by Equinor Fusion
Ignite UI Web Components121almost 2 years agoComplete library of UI components from Infragistics
LRNWebComponents246almost 2 years agoELMS:LN produced web components for any project
Medblocks UI54almost 2 years agoWeb Components for rapid development of openEHR and FHIR systems
Microsoft Graph Toolkit966almost 2 years agoCollection of web components for the Microsoft Graph
Mutation testing elements28almost 2 years agoA schema for mutation testing results with the web components to visualize it
One Platform Components30almost 2 years agoSet of web components for Red Hat One Platform
Playground Elements552about 2 years agoServerless code experiences with web components
Stripe Elements81almost 3 years agoCustom Element Wrapper for Stripe.js v3 Elements
Titanium Elements18almost 2 years agoCollection of lightweight web components used by Leavitt Group Enterprises
TrendChart Elements50about 2 years agoComponents to generate simple charts representing trends
Umbraco UI Components125almost 2 years agoCollection of user interface web components for Umbraco CMS
Vidstack Elements2,423almost 2 years agoSpec-compliant customizable, extensible, accessible and universal media elements
VSCode Webview Elements0over 2 years agoComponents for creating VSCode extensions which use the Webview API
Web Components for TEI Publisher18almost 2 years agoWeb components used by TEI Publisher and apps generated by it
Webmarkets web components1almost 2 years agoSet of Webmarkets' public web components
Wired Elements10,537almost 3 years agoCollection of elements that appear hand drawn
Wokwi Elements187almost 2 years agoWeb Components for Arduino and various electronic parts

Awesome Lit / Standalone Components

<api-viewer>271almost 2 years agoAPI documentation and live playground for Web Components
<app-datepicker>180over 2 years agoDatepicker element built with LitElement and Material Design 2
<burgton-button>17over 3 years agoSimple to use, customizable and accessible burger-button element
<code-block>30about 3 years agoWeb component that displays colorfully formatted code with Prism.js and LitElement
<codesandbox-button>0almost 3 years agoCustom Element that shows a CodeSandbox demo when you click on it
<editor-container>4,606almost 2 years agoBlock based editor, designed for general-purpose collaborative applications
<granite-qrcode-generator>14over 3 years agoCustom element to generate and render QR Codes, using qr.js library
<helium-animated-pages>16almost 2 years agoWeb component for creating CSS animations built with Lit
<json-viewer>179almost 2 years agoWeb Component to visualize JSON data in a tree view
<light-gallery>6,578almost 2 years agoFull featured JavaScript image and video gallery for Lit
<lit-datatable>57over 3 years agoMaterial Design implementation of a data table, powered by LitElement
<lit-image-cropper>9about 2 years agoFast and lightweight image cropper component
<lottie-player>1,572almost 2 years agoWeb Component for easily embedding and playing Lottie animations
<model-viewer>7,060almost 2 years agoA web component for rendering interactive 3D models
<rapi-doc>1,724almost 2 years agoWeb Component to view OpenAPI 3.0 & Swagger 2.0 Spec
<round-slider>85almost 2 years agoSimple round slider web component built with Lit
<stl-part-viewer>20almost 3 years agoLitElement web component that utilizes Three.js to display an STL model file

Awesome Lit / Tools / Building

babel-plugin-lit-property-types-from-tsBabel plugin for setting for reactive properties declared in Lit components based on TypeScript type annotations
babel-plugin-template-html-minifierBabel plugin for minifying HTML in tagged template strings
esbuild-plugin-litESBuild plugin to import CSS, SVG, HTML, XLIFF files as JavaScript tagged-template literal objects
esbuild-plugin-lit-cssESBuild plugin to import css files as JavaScript tagged-template literal objects
lit-css-loaderWebpack loader to import css files as JavaScript tagged-template literal objects
lit-scss-loaderWebpack loader to import the CSS/SCSS into Lit components
rollup-plugin-lit-cssRollup plugin to import css files as JavaScript tagged-template literal objects
rollup-plugin-minify-html-literalsRollup plugin to minify HTML in tagged template strings
rollup-plugin-postcss-litRollup plugin to load PostCSS-processed stylesheets in Lit components

Awesome Lit / Tools / Linting

eslint-plugin-litESLint plugin for Lit template strings
eslint-plugin-lit-a11yAccessibility linting plugin for Lit templates
lit-analyzerCLI that type checks bindings in Lit templates

Awesome Lit / Tools / IDE Plugins

vscode-lit-htmlSyntax highlighting and IntelliSense for lit-html template strings
vscode-lit-pluginSyntax highlighting, type checking and code completion for lit-html
es6-string-htmlVSCode extension which provides syntax highlighting for HTML in ES6 multiline strings
vim-html-template-literals73about 2 years agoSyntax highlighting and indentation for HTML inside of tagged template literals
@web-types/litAttribute completion for HTML inside of tagged template literals

Awesome Lit / Tools / TypeScript Plugins

ts-lit-pluginPlugin that adds type checking and code completion for Lit templates
typescript-lit-html-pluginTypeScript server plugin that adds IntelliSense for Lit templates

Awesome Lit / Tools / Other Tools

@custom-elements-manifest/analyzerCLI tool to generate API documentation for web components
Storybook for web-componentsUI development environment for plain web-component snippets
web-components-codemodsCodemods for Web Components compatible with lit-html template literals
Web Component DevTools137almost 2 years agoBrowser extension for developers working with Web Components
Web Component FactoryCLI tool for generating, building, testing and publishing web components

Awesome Lit / CDN

cdn.esm.sh
jsDelivr CDN
JSPM CDN
Skypack CDN
unpkg.com

Awesome Lit / Integrations

Bridgetown Lit Renderer13almost 2 years agoSSR + hydration of Lit components for Bridgetown
Fable.Lit93over 3 years agoCollection of tools to embed HTML code into F# code with the power of Lit
Ruby2JS431about 2 years agoMinimal yet extensible Ruby to JavaScript conversion

Awesome Lit / Videos

Lit 3.0 Launch Event
Efficient, Expressive, and Extensible HTML Templates (Polymer Summit 2017)
lit-HTML (Chrome Dev Summit 2017)
Lit Beta Launch Event (2021)
Lit 2.0 Release Livestream
VDOM vs lit-html - HTTP203
Declarative Reactive Web Components with Justin Fagnani
Building a Complex Application with Web Components and LitElement

Awesome Lit / Podcasts

The Web Platform Podcast 159: lit-html - HTML Templates via JavaScript Template Literals- An episode with the lit-html creator Justin Fagnani
ShopTalk Show 348: Getting lit-html with Justin FagnaniAnother episode with Justin Fagnani as a guest

Awesome Lit / Archive

Render HTML with Vanilla JavaScript and lit-html
A gentle introduction to lit-html
lit-html templates from zero to hero
Updating blog-pwa from Polymer to LitElement, Workbox, and Rollup
Let's Build Web Components! Part 5: LitElement
LitElement To Do App
LitElement with Rollup, Babel & Karma
A new, lean way of creating web apps
The future of Polymer & lit-html
A night experimenting with Lit-HTML
Making a fullstack CRUD app with LitHTML, Redux, Express, and Webpack
Building a chat with Twilio, lit-html, Parcel and TypeScript

Awesome Lit / Similar libraries

hauntedReact's Hooks API but for standard web components and hyperHTML or lit-html
htm8,748over 2 years agoHyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support
hybrids3,061almost 2 years agoUI library for creating Web Components with simple and functional API
lit-ntml82over 3 years agoLightweight and modern templating for SSR in Node.js, inspired by lit-html

Backlinks from these awesome lists:

More related projects: