Description
Lit is a small library for building web components. It adds reactive properties, declarative templates and scoped styles on top of the web platform standards, so the components you write are native custom elements that work with any framework or with none at all. The site says Lit weighs around 5 KB minified and compressed, and that when it updates it only touches the dynamic parts of the UI instead of rebuilding a virtual tree. The site positions Lit for shareable components, design systems and maintainable sites and apps. Documentation is available for versions 1, 2 and 3, with a playground for live tutorials that need no installation, examples, and a blog. The project is now part of the OpenJS Foundation. Its source is on GitHub, and the site links to public projects built with Lit, including design systems and the Home Assistant frontend.…
Highlights
- Reactive properties and declarative templates
- Scoped styles for components
- Native web components that work with any framework
- Around 5 KB minified and compressed
- Live playground and documentation for v1, v2 and v3
Ratings & Reviews
No ratings yet
Be the first to rate Lit.
People also visit
Lit FAQ
What is Lit?
A library for building fast, lightweight web components with reactive properties and declarative templates.
Does it work with React or Vue?
Lit components are native web components, so they work anywhere you use HTML, with any framework or none.
How big is it?
The site says Lit is around 5 KB minified and compressed.
Is Lit open source?
The project's source is public on GitHub at lit/lit. The site also says it is now part of the OpenJS Foundation.
How do I try it?
Use the live playground, which needs no installation, or install it with npm install lit.
What are the best Lit alternatives?
Popular alternatives to Lit include Lightning Web Components, Blueprint UI and AXA Pattern Library. See all Lit alternatives














