Skip to content
forked from lit/lit

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

License

Notifications You must be signed in to change notification settings

thomasverleye/lit

This branch is 708 commits behind lit/lit:main.

Folders and files

NameName
Last commit message
Last commit date
Aug 18, 2022
Aug 12, 2022
Apr 16, 2021
Jan 27, 2022
Aug 19, 2022
Aug 4, 2022
Apr 22, 2021
Aug 4, 2022
Apr 15, 2022
Jul 1, 2022
Jul 1, 2022
Jul 8, 2017
Aug 4, 2022
Apr 23, 2021
Oct 1, 2020
Sep 21, 2021
Apr 2, 2021
Aug 11, 2022
Feb 26, 2021
Jul 1, 2022
Jun 29, 2022
Jul 21, 2022
Jul 26, 2022
Aug 4, 2022

Repository files navigation

Lit

Simple. Fast. Web Components.

Build Status Published on npm Join our Slack Mentioned in Awesome Lit

Lit is 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.

Documentation

See the full documentation for Lit at lit.dev.

For information about upgrading lit-html 1.x and lit-element 2.x code, see the Lit 2.0 Upgrade Guide.

npm

To install from npm:

npm i lit

Lit Monorepo

This is the monorepo for upcoming Lit packages, including lit, lit-html 2.0 and lit-element 3.0.

lit-html 1.x source is available on the lit-html-1.x branch.

Packages

  • Core packages
    • lit - The primary user-facing package of Lit which includes everything from lit-html and lit-element.
    • lit-element - The web component base class used in Lit.
    • lit-html - The rendering library used by LitElement.
    • @lit/reactive-element - A low level base class that provides a reactive lifecycle based on attribute/property changes.
  • Additional libraries
    • @lit/localize - A library and command-line tool for localizing web applications built using Lit.
    • @lit/localize-tools - Localization tooling for use with @lit/localize.
  • Labs
  • Starter kits (not published to npm)
  • Internal packages (not published to npm)
    • tests - Test infrastructure for the monorepo.
    • benchmarks - Benchmarks for testing various libraries in the monorepo.
    • @lit-internal/scripts - Utility scripts used within the monorepo.

Contributing to Lit

Lit is open source and we appreciate issue reports and pull requests. See CONTRIBUTING.md for more information.

Setting up the lit monorepo for development

Initialize repo:

git clone https://github.com/lit/lit.git
cd lit
npm ci

Build all packages:

npm run build

Test all packages:

npm run test

Run benchmarks for all packages:

npm run benchmarks

See individual package READMEs for details on developing for a specific package.

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 49.1%
  • JavaScript 47.8%
  • HTML 2.8%
  • Other 0.3%