home.social

#buildwithlit โ€” Public Fediverse posts

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

fetched live
  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. 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

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

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

  5. โฌ†๏ธ
    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

  6. โฌ†๏ธ
    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

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

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

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

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

  11. @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

  12. @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

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

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

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

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

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

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

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

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

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

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

    docs.google.com/presentation/d

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

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

    github.com/vaadin/eslint-confi

  25. 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!

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

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

  28. New additions to Web Components bookmarks:

    - cypress-lit = #Cypress + #buildWithLit ๐Ÿ”ฅ
    - query-selector-shadow-dom by #Webdriver
    - Shadow DOM support for Capybara ๐Ÿ’Ž
    - Shadow DOM with Java #Selenium

    Check out the full list of testing solutions:

    webcomponents.today/testing-so

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

  30. #WebComponentsAdvent Day 23: Starter Templates.

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

    webcomponents.today/starter-te

  31. 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 ๐Ÿ”ฅ

  32. 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 ๐Ÿ”ฅ

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

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

    #WebComponents + #react = ๐Ÿ˜Ž

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

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

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

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

  38. The #BuildWithLit 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/buildWithLi

  39. RT @[email protected]

    One component and three ways to compare images:
    a slider, an overlay and a split view. Had lots of fun building this ๐Ÿ˜„ - as always it's @[email protected]
    #webcomponents #buildWithLit
    github.com/TonySpegel/image-co

    ๐Ÿฆ๐Ÿ”—: twitter.com/TonySpegel/status/