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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  34. It's cool that is integrating with .

    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 !

    youtube.com/live/ri9FEl_hRTc?s

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

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

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

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

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

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

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

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

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