Skip to content

lit

Library for building web components with a declarative template system.

Source

214 resources imported from web-padawan/awesome-lit, dedicated to the public domain (CC0 / Unlicense). Thanks to its maintainers and contributors. Part of the KEEBOX Library · Category: Front-End Development.

General resources

Community

Overview

Starter Templates

Codelabs

Tutorials

Examples

Lit Labs

  • @lit/localize - Library and command-line tool for localizing web applications built using Lit.
  • @lit-labs/ssr - Package for server-side rendering Lit templates and components.
  • @lit-labs/motion - Lit directives for making things move.
  • @lit-labs/react - React integration for Web Components and reactive Lit controllers.
  • @lit-labs/scoped-registry-mixin - Mixin for LitElement that integrates with the speculative Scoped CustomElementRegistry polyfill to evaluate the proposal and facilitate feedback.
  • @lit-labs/task - Controller for Lit that renders asynchronous tasks.
  • @lit-labs/virtualizer - Package that provides virtual scrolling for Lit.

Extensions

Design Systems

Component Libraries

Standalone Components

  • `` - API documentation and live playground for Web Components.
  • `` - Datepicker element built with LitElement and Material Design 2.
  • `` - Simple to use, customizable and accessible burger-button element.
  • `` - Web component that displays colorfully formatted code with Prism.js and LitElement.
  • `` - Custom Element that shows a CodeSandbox demo when you click on it.
  • `` - Block based editor, designed for general-purpose collaborative applications.
  • `` - Custom element to generate and render QR Codes, using qr.js library.
  • `` - Web component for creating CSS animations built with Lit.
  • `` - Web Component to visualize JSON data in a tree view.
  • `` - Full featured JavaScript image and video gallery for Lit.
  • `` - Material Design implementation of a data table, powered by LitElement.
  • `` - Fast and lightweight image cropper component.
  • `` - Web Component for easily embedding and playing Lottie animations.
  • `` - A web component for rendering interactive 3D models.
  • `` - Structure-aware shimmer skeleton loader that measures the real DOM to generate overlay blocks automatically.
  • `` - Web Component to view OpenAPI 3.0 & Swagger 2.0 Spec.
  • `` - Web component for rendering responsive images.
  • `` - Simple round slider web component built with Lit.
  • `` - LitElement web component that utilizes Three.js to display an STL model file.

Meta Frameworks

  • Gracile - Thin, full-stack meta-framework. Powered by Vite and Lit SSR.

Tools

Building

Linting

IDE Plugins

  • vscode-lit-html - Syntax highlighting and IntelliSense for lit-html template strings.
  • vscode-lit-plugin - Syntax highlighting, type checking and code completion for lit-html.
  • es6-string-html - VSCode extension which provides syntax highlighting for HTML in ES6 multiline strings.
  • vim-html-template-literals - Syntax highlighting and indentation for HTML inside of tagged template literals.
  • @web-types/lit - Attribute completion for HTML inside of tagged template literals.

TypeScript Plugins

Other Tools

  • @custom-elements-manifest/analyzer - CLI tool to generate API documentation for web components.
  • Asimonim - Design tokens parser, validator, and language server for the W3C DTCG specification.
  • cem - CLI multitool for generating, validating, and querying Custom Elements Manifests, with built-in LSP and MCP servers.
  • Lit Inspector - Chrome DevTools extension for inspecting Lit components: component tree, reactive properties, update counts, and a lifecycle timeline.
  • Storybook for web-components - UI development environment for plain web-component snippets.
  • web-components-codemods - Codemods for Web Components compatible with lit-html template literals.
  • Web Component DevTools - Browser extension for developers working with Web Components.
  • Web Component Factory - CLI tool for generating, building, testing and publishing web components.

CDN

Integrations

  • Bridgetown Lit Renderer - SSR + hydration of Lit components for Bridgetown.
  • Fable.Lit - Collection of tools to embed HTML code into F# code with the power of Lit.
  • Ruby2JS - Minimal yet extensible Ruby to JavaScript conversion.

Videos

Podcasts

Archive

Similar libraries

  • haunted - React's Hooks API but for standard web components and hyperHTML or lit-html.
  • pion - React Hooks API for web components using lit-html.
  • htm - Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
  • hybrids - UI library for creating Web Components with simple and functional API.
  • lit-ntml - Lightweight and modern templating for SSR in Node.js, inspired by lit-html.