Lit

@lit.dev

Your friendly neighborhood library to help you build web components! https://lit.dev

Surprisingly, in the last few months, my go-to library for building components became… @lit.dev. For its well-balanced abstraction that makes web components not feel like a chore. You should try it if you bounced off web components in the past or dread working on a custom element.

📣 We just published our End-of-Year / Happy Holidays Lit releases! - 👩‍⚕️ Many bug fixes! - 📄 A new lit-labs/forms packages for form-associated elements! - 🎾 A new Spring controller in lit-labs/motion! - 🏎️ Massive SSR performance improvements! - 🧩 A lit-html template parser in lit-labs/analyzer

Changelog for a few Lit packages. See https://github.com/lit/lit/pull/5183 for details.Changelog for a few Lit packages. See https://github.com/lit/lit/pull/5183 for details.

📣 We just published our End-of-Year / Happy Holidays Lit releases! - 👩‍⚕️ Many bug fixes! - 📄 A new lit-labs/forms packages for form-associated elements! - 🎾 A new Spring controller in lit-labs/motion! - 🏎️ Massive SSR performance improvements! - 🧩 A lit-html template parser in lit-labs/analyzer

Changelog for a few Lit packages. See https://github.com/lit/lit/pull/5183 for details.Changelog for a few Lit packages. See https://github.com/lit/lit/pull/5183 for details.

I have accidentally created a shit reimplementation of lit.dev in my component lab while iterating on the parts of making my components that have felt lacking. I think it’s time to just migrate to Lit.

People so often don't get that Lit isn't a framework, but it really helps understand our design decisions. For example: Why doesn't Lit have an opinionated reactivity system for generic data, like Signals?

Enjoying building with @lit.dev. Simple and small. Components have strong decoupling because of shadow DOM encapsulation. Flexible. Works with basic reactive props or Redux-style architecture or signals. You can even pop the hood and do imperative DOM manipulation when you need to.

Working with @lit.dev and finding it a great fit for academic projects. The components are self-contained WebComponents you can drop anywhere. They rely on web standards, so unlikely to break over time and perfect for research code you build once and don't touch for years.

Here's a nice Lit tip 💡: Let's say you want to hide some DOM but preserve component state. You can do this with the cache() directive: Here when showView is toggled from true to false back to true, the DOM fragment for the expression is extracted, saved, and restored - preserving all the state.

Bild

Someone posted a link to TanStack Table on the @lit.dev discord. I didn't know about this before, and wow! it looks awesome! The examples show very idiomatic Lit patterns for a headless UI utility. Reactive controllers, repeat(), `@state()`, and more. tanstack.com/table/v8/doc... @tanstack.com

Lit Table | TanStack Table Lit Docs

The @tanstack/lit-table adapter is a wrapper around the core table logic. Most of it's job is related to managing state the "lit" way, providing types and the rendering implementation of cell/header/f...

tanstack.com

Earlier this week and after getting the internal approval, we flipped our new pre-1.0 Web Component based Design System, Glide, over to public on GitHub. Look out for an article from me on my personal site and an official one on our tech blog soon™ Built with @lit.dev ! github.com/crowdstrike/...

GitHub - CrowdStrike/glide-core: Glide Core Design System

Glide Core Design System. Contribute to CrowdStrike/glide-core development by creating an account on GitHub.

github.com