lit/lit-element

LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is...

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 34 minutes ago
Added to GitGenius on September 15th, 2026
Created on September 2nd, 2017
Open Issues & Pull Requests: 58 (+0)
GitHub issues: Enabled
Number of forks: 311
Total Stargazers: 4,471 (+0)
Total Subscribers: 138 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 1.7 hours
Mean response time: 26.5 days
90th percentile: 79.5 days
Tracked items: 3

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Area: docs (1)
  • Severity: Low (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

LitElement is a base class for creating fast, lightweight web components with declarative rendering.

LitElement solves the problem of building reusable web components by providing a simple foundation that combines lit-html templating with reactive property management. It renders templates into the element's Shadow DOM and automatically re-renders when properties change, allowing developers to write components declaratively. The library handles the connection between property changes and DOM updates, reducing boilerplate code typically required for web component development.

Developers should be aware that this repository maintains the legacy LitElement 2.x codebase. The project has moved into the Lit monorepo, where LitElement 3.x is now developed as part of the broader Lit library alongside lit-html 2.x. New projects should consider using Lit 2 instead. LitElement suits teams building custom elements that need to work across modern browsers and Internet Explorer 11 with polyfills. The library supports both TypeScript decorators and vanilla JavaScript for declaring reactive properties, making it accessible regardless of build tooling preferences.

Development on this repository is focused on maintenance of the legacy version. The project provides forward compatibility guidance to help users migrate to Lit 2, including deprecated APIs that have been back-ported to ease the upgrade path.