home.social

#buildwithlit — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #buildwithlit, aggregated by home.social.

  1. One thing about web components that seems to take some people a while to grok is that a WC library like Lit is just an implementation detail, and from the outside it's all just standard HTML/DOM.

    ie, you don't need to use Lit to instantiate Lit components. Plain DOM APIs work.

    #webComponents #lit #webDev #javaScript #js #customElements #buildWithLit #frontend #html #dom #components

  2. Announcing Platformer: a set of libraries to help implement:

    • attribute reflection in web components following the HTML specification
    • WebIDL type coercions for your public JS APIs (including web component properties)

    github.com/tbroyer/platformer

    Comes with ECMAScript decorators (compatible with TypeScript 5.2+ and Babel) for vanilla custom elements and Lit elements.

    Currently not published on NPM (as I'm still evaluating whether all of this is a good thing worth pursuing 😂 feedback welcome!)

    #webdev #WebComponents #buildWithLit

  3. ⬆️
    Updated my post following those tests, as some code samples were wrong and I learned a few new things writing the tests:

    blog.ltgt.net/web-component-pr

    BTW, also added FAST implementations to the test.

    #WebComponents #buildWithLit #FASTDesign

  4. For those interested, I just published on GitHub a series of tests for reflecting attributes in web components (see blog.ltgt.net/web-component-pr for the rationale, I'll update it soon following those tests), reusing the same tests as used by browsers for built-in elements.
    Tests include (for now) vanilla custom elements and Lit custom elements.

    github.com/tbroyer/custom-elem

    #WebComponents #buildWithLit

  5. Built-in HTML elements' properties all share similar behaviors, that don't come for free when you write your own custom elements. Let's see what those behaviors are, why you'd want to implement them in your web components, and how to do it, including how some web component libraries actually don't allow you to mimic those behaviors.

    blog.ltgt.net/web-component-pr

    #webdev #WebComponents #buildWithLit #fastdesign #stencil

  6. @molily @sir_pepe Fwiw, this actually looks a lot like Lit's ReactiveElement: @property and @state-annotated properties become reactive and trigger a call to the update() method where you can update your element the way you want it.
    LitElement extends ReactiveElement to render using lit-html, but ReactiveElement can be used standalone.

    Btw, ReactiveElement also supports reactive controllers that are slowly spreading to other libraries: github.com/webcomponents-cg/co

    poke @justinfagnani

    #buildWithLit

  7. It's cool that #Lit is integrating with #Signals.

    It feels like we've been circling around this design pattern for decades; they've been called Observables, Pub/Sub, State, Context, etc.

    STOKED to hear that there's discussion around standardizing and adding Signals to the #webPlatform!

    youtube.com/live/ri9FEl_hRTc?s

    #webDev #lit #litHTML #litElement #buildWithLit #javaScript #web #react #preact #js #reactjs

  8. It's super cool that #Lit is supporting standard #javaScript #decorators, but I'm still not going to use them!

    Maybe one day when they don't need to be transpiled anymore.

    #webDev #buildWithLit #litHTML #litElement #js

  9. Here's a Connect 4 demo with Preact signals and Lit, based on @jaffathecake's one in Preact (piaille.fr/@jaffathecake@masto). Zero update after the first render. All changes are direct-to-DOM.

    Most of the code is copied from Jake's demo; I added a small Lit directive to achieve the direct-to-DOM that's integrated into Preact.

    lit.dev/playground/#gist=a9590

    /poke @justinfagnani

    #Preact #buildWithLit

  10. My base experience with Lit has been OK so far, but integration with #VSCode and #WithAstro seems to be not great -- as code completion for custom properties doesn't seem to work.

    The editor treats the web component as just a plain-old component, with nothing custom (and shows warnings about the properties). My searching hasn't provided a way to add extra typing info.

    There are an enormous number of moving parts here .... 😖

    lit.dev/

    #BuildWithLit #WebDev

  11. Anyone here use lit.dev for HTML/web components?

    (I don’t know if there’s a hashtag for it)

    What’s been your experience? Anything you like better for making the experience of writing a web component just a little nicer with little overhead?

    #WebDev #WithAstro #BuildWithLit

  12. Excited to share a presentation around the ongoing project improvements. Do check it out if you are interested in . There's some groundwork being done and that also gets us closer to
    conversion!

    docs.google.com/presentation/d

  13. Some secrets from the R&D weekly update. Our team has been working on really cool stuff lately, including experiments! Also, do check out eslint-config-vaadin alpha, it's a great config:

    github.com/vaadin/eslint-confi

  14. Today has been a good day. Despite russian missile strikes and rolling blackouts, I managed to deliver experimental versions of 5 using . Don't tell it to my tech lead!

  15. New additions to Web Components bookmarks:

    - cypress-lit = + 🔥
    - query-selector-shadow-dom by
    - Shadow DOM support for Capybara 💎
    - Shadow DOM with Java

    Check out the full list of testing solutions:

    webcomponents.today/testing-so

  16. Day 23: Starter Templates.

    If you want to start creating , today's update is for you! Meet the list of starters kits with @vite, , , , FAST, Shoelace, other libraries and tools.

    webcomponents.today/starter-te

  17. It's been a month since I joined . Time for a proper 🙃

    I'm Serhii from . Not always online due to (we had a 30 hours last week after russian missile strikes).

    I've been working at for more than 5 years. My main focus is creating using , and .

    Finally, I'm a member of and teams. I also do on my own and I especially enjoy using 🔥

  18. It's been a month since I joined #fediverse. Time for a proper #introduction 🙃

    I'm Serhii from #Ukraine. Not always online due to #UkraineWar (we had a 30 hours #blackout last week after russian missile strikes).

    I've been working at #Vaadin for more than 5 years. My main focus is creating #WebComponents using #javascript, #java and #typescript.

    Finally, I'm a member of #OpenWC and #ModernWebDev teams. I also do #opensource on my own and I especially enjoy using #buildWithLit 🔥

  19. It's been a month since I joined #fediverse. Time for a proper #introduction 🙃

    I'm Serhii from #Ukraine. Not always online due to #UkraineWar (we had a 30 hours #blackout last week after russian missile strikes).

    I've been working at #Vaadin for more than 5 years. My main focus is creating #WebComponents using #javascript, #java and #typescript.

    Finally, I'm a member of #OpenWC and #ModernWebDev teams. I also do #opensource on my own and I especially enjoy using #buildWithLit 🔥

  20. It's been a month since I joined #fediverse. Time for a proper #introduction 🙃

    I'm Serhii from #Ukraine. Not always online due to #UkraineWar (we had a 30 hours #blackout last week after russian missile strikes).

    I've been working at #Vaadin for more than 5 years. My main focus is creating #WebComponents using #javascript, #java and #typescript.

    Finally, I'm a member of #OpenWC and #ModernWebDev teams. I also do #opensource on my own and I especially enjoy using #buildWithLit 🔥

  21. It's been a month since I joined #fediverse. Time for a proper #introduction 🙃

    I'm Serhii from #Ukraine. Not always online due to #UkraineWar (we had a 30 hours #blackout last week after russian missile strikes).

    I've been working at #Vaadin for more than 5 years. My main focus is creating #WebComponents using #javascript, #java and #typescript.

    Finally, I'm a member of #OpenWC and #ModernWebDev teams. I also do #opensource on my own and I especially enjoy using #buildWithLit 🔥

  22. Today we released React wrappers for web components, powered by Labs React. Check it out: npm i @hilla/react-components

    + = 😎

    hilla.dev/blog/hilla-1-3-adds-

  23. Day 10: Codelabs.

    If you are new to Web Components and don't know where to start, today's update is for you! Check out codelabs: detailed step by step tutorials created by , Chrome Developers and teams:

    webcomponents.today/codelabs/

  24. #WebComponentsAdvent Day 10: Codelabs.

    If you are new to Web Components and don't know where to start, today's update is for you! Check out codelabs: detailed step by step tutorials created by #buildWithLit, Chrome Developers and #OpenWc teams:

    webcomponents.today/codelabs/

  25. #WebComponentsAdvent Day 10: Codelabs.

    If you are new to Web Components and don't know where to start, today's update is for you! Check out codelabs: detailed step by step tutorials created by #buildWithLit, Chrome Developers and #OpenWc teams:

    webcomponents.today/codelabs/

  26. #WebComponentsAdvent Day 10: Codelabs.

    If you are new to Web Components and don't know where to start, today's update is for you! Check out codelabs: detailed step by step tutorials created by #buildWithLit, Chrome Developers and #OpenWc teams:

    webcomponents.today/codelabs/

  27. #WebComponentsAdvent Day 10: Codelabs.

    If you are new to Web Components and don't know where to start, today's update is for you! Check out codelabs: detailed step by step tutorials created by #buildWithLit, Chrome Developers and #OpenWc teams:

    webcomponents.today/codelabs/

  28. The Discord server now has forum channels!

    They really look like a much better way to do support, so if you use Lit, head on over and check them out: discord.com/invite/buildWithLit