Ir para o conteúdo principal
Lit logo

Lit

Simple. Fast. Web Components.

Simple. Fast. Web Components. A lightweight library for building web components with reactive properties, declarative templates, and scoped styles.

18K
GitHub Stars
native
TypeScript
medium
Learning Curve
4.3
DX Score

Preços

Model
free
Plano Gratuito
BSD-3-Clause licensed, fully open source

Recursos

  • Native web components
  • Reactive properties
  • Declarative templates
  • Tagged template literals
  • Shadow DOM scoped styles
  • Tiny 5KB footprint
  • Framework agnostic
  • Standards-based
  • SSR support

Prós

  • + Native web standards
  • + Works with any framework
  • + Very small bundle
  • + Great for design systems
  • + Backed by Google

Contras

  • - Learning web components required
  • - Shadow DOM can be tricky
  • - Less community than React/Vue
  • - Not for full app architecture

Melhor Para

startup enterprise
web-components standards lightweight design-systems google