Lit's Avatar

Lit

@lit.dev.bsky.social

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

1,404 Followers  |  80 Following  |  15 Posts  |  Joined: 13.11.2024  |  2.0572

Latest posts by lit.dev on Bluesky

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.

29.07.2025 15:16 β€” πŸ‘ 25    πŸ” 5    πŸ’¬ 0    πŸ“Œ 0
Kin Form

Just released a form library for @lit.dev

kin-form.deno.dev

22.05.2025 08:34 β€” πŸ‘ 7    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

πŸ‘€

12.05.2025 21:58 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

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.

24.04.2025 20:41 β€” πŸ‘ 30    πŸ” 5    πŸ’¬ 2    πŸ“Œ 0

Declarative shadow DOM support, awesome!

29.03.2025 01:18 β€” πŸ‘ 20    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
Preview
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...

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

14.03.2025 16:54 β€” πŸ‘ 24    πŸ” 5    πŸ’¬ 1    πŸ“Œ 0
Preview
GitHub - CrowdStrike/glide-core: Glide Core Design System Glide Core Design System. Contribute to CrowdStrike/glide-core development by creating an account on GitHub.

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/...

28.02.2025 01:53 β€” πŸ‘ 49    πŸ” 8    πŸ’¬ 1    πŸ“Œ 1
Video thumbnail

So, I made a playground web component with @lit.dev using a font with built-in syntax highlightings. It made it so easy, thanks!
blog.glyphdrawing.club/font-with-bu...

27.01.2025 15:52 β€” πŸ‘ 13    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

Thanks Elliott! Awesome work!! ⚑️

03.02.2025 20:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
The Lit Cheat Sheet – Lit Simple. Fast. Web Components.

Are you new to Lit & need a jump start? Or are you a Lit veteran & can't quite remember that _one_ callback name? Well do we have the article for you!

We've just published the Lit Cheat Sheet! An article that has a bunch of quick code snippets for all sorts of code patterns

lit.dev/articles/lit...

03.02.2025 20:28 β€” πŸ‘ 34    πŸ” 9    πŸ’¬ 2    πŸ“Œ 1

πŸ‘€ A Minecraft skin editor #builtWithLit!

30.12.2024 18:18 β€” πŸ‘ 11    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
The Virtue of Laziness: Leveraging Incrementality for Faster Web UI (Chrome Dev Summit 2018)
YouTube video by Chrome for Developers The Virtue of Laziness: Leveraging Incrementality for Faster Web UI (Chrome Dev Summit 2018)

I was reminded of my talk on async rendering with Lit: www.youtube.com/watch?v=ypPR...

I think it's really useful if you're looking for analogs to React Suspense and such for web components.

Independent WCs allow a lot of control over scheduling to make very responsive UIs - and interoperably!

30.12.2024 18:01 β€” πŸ‘ 25    πŸ” 4    πŸ’¬ 3    πŸ“Œ 0
Building a Design System Using Standard Web Components
YouTube video by UXDX Building a Design System Using Standard Web Components

Great pitch by @alexanderwilson.bsky.social on the use of #WebComponents and @lit.dev in #DesignSystems:

21.11.2024 16:13 β€” πŸ‘ 13    πŸ” 1    πŸ’¬ 2    πŸ“Œ 0

lit-html crossed 2.5M npm downloads per week and 11M downloads per month last month, and lit crossed 2M npm downloads per week! πŸ“ˆ

#webcomponents @lit.dev

22.11.2024 17:50 β€” πŸ‘ 31    πŸ” 8    πŸ’¬ 1    πŸ“Œ 0

Source: bsky.app/profile/eric...

Thanks @eric.amod.io!

20.11.2024 18:12 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Very cool - the new GitLens Home View is #builtWithLit and web components! πŸ”₯

20.11.2024 18:11 β€” πŸ‘ 23    πŸ” 4    πŸ’¬ 1    πŸ“Œ 0

Oooh, we're going to have to try this in Lit's repeat() directive!

State-preserving atomic moves will be *incredible* for focus, caret position in inputs, and hopefully not firing disconnected/connected callbacks!

20.11.2024 18:01 β€” πŸ‘ 22    πŸ” 3    πŸ’¬ 1    πŸ“Œ 2

Hello, world!

18.11.2024 18:26 β€” πŸ‘ 63    πŸ” 5    πŸ’¬ 5    πŸ“Œ 0

βœ… DNS verified

14.11.2024 00:10 β€” πŸ‘ 22    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0

No close tag because our presence here is just beginning ☯️

13.11.2024 20:52 β€” πŸ‘ 20    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

No close tag because our presence here is just beginning ☯️

13.11.2024 20:52 β€” πŸ‘ 20    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Thanks! πŸ’™

13.11.2024 20:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Working on a Form Associated Custom Elements helper library
RFC for Lit.

This should make it a lot easier to make correct and accessible form associated elements.

I have the impl basically done too, so things should move quickly once we reach consensus on the API shape.

github.com/lit/rfcs/pul...

13.11.2024 19:03 β€” πŸ‘ 26    πŸ” 7    πŸ’¬ 4    πŸ“Œ 0

Awesome!

You're in good company - the new USWDS is being built with Lit too!

13.11.2024 19:57 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

We're following an "ask for forgiveness" strategy over here, so depending on how they deal with things like... rules ...it might take them longer 🀭

13.11.2024 19:56 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

We're here! πŸ”₯

13.11.2024 19:53 β€” πŸ‘ 3    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

Hey there @patak.dev πŸ‘‹

13.11.2024 19:52 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

We’re building out the component library for NYS’s new design system using Lit and web components. AMA

13.11.2024 11:32 β€” πŸ‘ 24    πŸ” 2    πŸ’¬ 10    πŸ“Œ 0

This is indeed the real Lit account. We'll get the handle moved to the lit.dev domain as soon as we can.

13.11.2024 19:43 β€” πŸ‘ 17    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

They are!

13.11.2024 19:42 β€” πŸ‘ 16    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

@lit.dev is following 20 prominent accounts