• Stars
    star
    1,299
  • Rank 34,849 (Top 0.8 %)
  • Language
  • License
    Creative Commons ...
  • Created almost 6 years ago
  • Updated 5 months 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 Lit resources.

Awesome Lit Awesome

A curated list of awesome Lit resources.

Lit — a simple library for building fast, lightweight web components.

At Lit's core is a boilerplate-killing component base class that provides reactive state, scoped styles, and a declarative template system that's tiny, fast and expressive.

Contents

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-viewer> - API documentation and live playground for Web Components.
  • <app-datepicker> - Datepicker element built with LitElement and Material Design 2.
  • <burgton-button> - Simple to use, customizable and accessible burger-button element.
  • <code-block> - Web component that displays colorfully formatted code with Prism.js and LitElement.
  • <codesandbox-button> - Custom Element that shows a CodeSandbox demo when you click on it.
  • <granite-qrcode-generator> - Custom element to generate and render QR Codes, using qr.js library.
  • <helium-animated-pages> - Web component for creating CSS animations built with Lit.
  • <json-viewer> - Web Component to visualize JSON data in a tree view.
  • <light-gallery> - Full featured JavaScript image and video gallery for Lit.
  • <lit-datatable> - Material Design implementation of a data table, powered by LitElement.
  • <lottie-player> - Web Component for easily embedding and playing Lottie animations.
  • <model-viewer> - A web component for rendering interactive 3D models.
  • <rapi-doc> - Web Component to view OpenAPI 3.0 & Swagger 2.0 Spec.
  • <round-slider> - Simple round slider web component built with Lit.
  • <stl-part-viewer> - LitElement web component that utilizes Three.js to display an STL model file.

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.

TypeScript Plugins

Other Tools

CDN

The following content delivery networks provide ES module versions of Lit:

See lit.dev documentation for using bundles.

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

The following articles refer to older versions of lit-html and LitElement.

Similar libraries

These libraries are not related to Lit, but are built using similar concepts. They use html tagged template literal, and leverage the benefits of the same IDE Plugins for syntax highlighting.

  • haunted - React's Hooks API but for standard web components and hyperHTML or 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.

Other awesome resources

If you want more awesome resources, check the awesome list!


License

CC0

More Repositories

1

awesome-web-components

A curated list of awesome Web Components resources.
2,636
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