dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.6K
active users

#WebComponents

5 posts5 participants0 posts today
Michael Gale<p>I also have a silly web components question... </p><p>If I choose a helper library like <a href="https://hachyderm.io/tags/LitHtml" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LitHtml</span></a> and make some component. Say like a button. And I want to make it portable to different projects / contexts.</p><p>Is it possible with some tool to "compile" it back to a vanilla web-component again? Or would it only be "portable" to some other context if you also handed over the dependency on Lit? </p><p><a href="https://hachyderm.io/tags/html" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>html</span></a> <a href="https://hachyderm.io/tags/css" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>css</span></a> <a href="https://hachyderm.io/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://hachyderm.io/tags/js" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>js</span></a> <a href="https://hachyderm.io/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a></p>
Frontend Dogma<p>Web Components: Working With Shadow DOM, by <span class="h-card" translate="no"><a href="https://mastodon.social/@smashingmag" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>smashingmag</span></a></span>:</p><p><a href="https://www.smashingmagazine.com/2025/07/web-components-working-with-shadow-dom/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">smashingmagazine.com/2025/07/w</span><span class="invisible">eb-components-working-with-shadow-dom/</span></a></p><p><a href="https://mas.to/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://mas.to/tags/shadowdom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shadowdom</span></a> <a href="https://mas.to/tags/dom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dom</span></a> <a href="https://mas.to/tags/html" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>html</span></a></p>
Friday Front-End<p>Public <a href="https://hachyderm.io/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> Custom Properties in the Shadow DOM: "The definitive guide to using public CSS Custom properties to configure <a href="https://hachyderm.io/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> externally. Surely no one will ever write about this topic again." <a href="https://michaelwarren.dev/blog/css-variables-in-wc/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">michaelwarren.dev/blog/css-var</span><span class="invisible">iables-in-wc/</span></a></p>
Paris Web<p>Simon Duhem et Nicolas Jouanno Daniel vous inviteront à explorer les défis de l'accessibilité des web components avec le Shadow DOM et comment le RGAA et les outils d’audit pourraient évoluer.</p><p><a href="https://www.paris-web.fr/2025/conference/les-web-components-et-laccessibilite" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">paris-web.fr/2025/conference/l</span><span class="invisible">es-web-components-et-laccessibilite</span></a></p><p><a href="https://mamot.fr/tags/accessibilit%C3%A9" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>accessibilité</span></a> <a href="https://mamot.fr/tags/d%C3%A9veloppement" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>développement</span></a> <a href="https://mamot.fr/tags/webComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webComponents</span></a> <a href="https://mamot.fr/tags/rgaa" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rgaa</span></a></p>
Reuben Walker<p>Web Components: Working With Shadow DOM. <a href="https://me.dm/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a><br><a href="https://www.smashingmagazine.com/2025/07/web-components-working-with-shadow-dom/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">smashingmagazine.com/2025/07/w</span><span class="invisible">eb-components-working-with-shadow-dom/</span></a></p>
That HTML Blog & The Spicy Web<p>The Invoker Commands API is the new hotness for a declarative <a href="https://intuitivefuture.com/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> solution to the problem “click and see something happen!!”</p><p>However…</p><p>If we’re inside shadow DOM and the button being clicked is supposed to do a thing via its host component, then uh, nope. 🤨</p><p>Thankfully there’s always a workaround in the Wide World of the Web, so I’ve written it up and here it is!</p><p>😁 Yay for building directly on top of platform mechanics. 👏 <a href="https://intuitivefuture.com/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://intuitivefuture.com/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://intuitivefuture.com/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a></p><p><a href="https://thathtml.blog/2025/07/more-fun-with-invoker-commands-web-components/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thathtml.blog/2025/07/more-fun</span><span class="invisible">-with-invoker-commands-web-components/</span></a></p>
castastrophe<p>We all want our design system components to be pretty; they represent the expression of the brand! But how much should they self-manage or reach out of themselves and manage peers in the DOM? What are your thoughts?</p><p>Pretty and dumb or pretty and highly capable?</p><p><a href="https://front-end.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://front-end.social/tags/designsystems" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>designsystems</span></a></p>
Jesse Jurman<p>After a long while tinkering with smaller and smaller ways to build re-usable pieces of HTML, I've landed on something that is simple, and uses the browsers built-in abilities to upgrade elements.</p><p>Introducing "ShadowRoot Injector" 🎉<br><a href="https://github.com/Tram-One/shadowroot-injector" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Tram-One/shadowroot</span><span class="invisible">-injector</span></a></p><p>ShadowRoot Injector is a way to declaratively define HTML, that will automatically insert when custom elements appear in the DOM. 🪡</p><p>Check out the link and examples, and let me know what y'all think!<br><a href="https://fosstodon.org/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://fosstodon.org/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> <a href="https://fosstodon.org/tags/ShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShadowDOM</span></a> <a href="https://fosstodon.org/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a></p>
just small circles 🕊<p><span class="h-card" translate="no"><a href="https://social.coop/@judell" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>judell</span></a></span> hey, this is very interesting. The old VB UI in a new web jacket. I just tooted about the Rube Goldberg machine that is modern web dev, and in some ways I was more empowered at the start of my career in 1997 with Visual Basic.</p><p><a href="https://social.coop/@smallcircles/114878688112419149" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">social.coop/@smallcircles/1148</span><span class="invisible">78688112419149</span></a></p><p>You might have a look if maybe there isn't a cool combination to make with <a href="https://social.coop/tags/Datastar" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Datastar</span></a> at <a href="https://data-star.dev" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">data-star.dev</span><span class="invisible"></span></a> which recently went v1.0</p><p>They continue where <a href="https://social.coop/tags/HTMX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTMX</span></a> stopped, in <a href="https://social.coop/tags/hypermedia" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hypermedia</span></a> land, where they use <a href="https://social.coop/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> for complex UI.</p>
Frontend Dogma<p>Bulletproof Web Component Loading, by <span class="h-card" translate="no"><a href="https://mastodon.social/@cferdinandi" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cferdinandi</span></a></span>:</p><p><a href="https://gomakethings.com/bulletproof-web-component-loading/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gomakethings.com/bulletproof-w</span><span class="invisible">eb-component-loading/</span></a></p><p><a href="https://mas.to/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://mas.to/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a></p>
That HTML Blog & The Spicy Web<p>Move over Bootstrap.</p><p>Web Awesome is an awesome successor to what in my opinion was already the best open source <a href="https://intuitivefuture.com/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> library (Shoelace) on the market. Now we have the best <a href="https://intuitivefuture.com/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> framework on the market.</p><p>All of the CSS is…um…just CSS and all of the components are…um…just web components. Native <a href="https://intuitivefuture.com/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a> APIs across the board. 🙌</p><p>Take a first look at the brand new public beta:</p><p><a href="https://thathtml.blog/2025/07/web-awesome-is-the-first-native-component-framework/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thathtml.blog/2025/07/web-awes</span><span class="invisible">ome-is-the-first-native-component-framework/</span></a></p>
Nathan Knowler<p>In custom elements, is it best to create one MutationObserver that handles every instance of the custom element or observers per instance, then set up and tear down the observer inside the custom element lifecycle? The target would be the custom element itself (or something within its shadow tree). <a href="https://sunny.garden/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://sunny.garden/tags/WebPerf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebPerf</span></a></p>
Kai<p>The beta release of web awesome (formerly shoelace) is here and I am excited about all that cool web component stuff!</p><p><a href="https://webawesome.com/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">webawesome.com/</span><span class="invisible"></span></a></p><p><a href="https://digitalcourage.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://digitalcourage.social/tags/webawesome" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webawesome</span></a></p>
kalvn<p>Qu'est-ce que le shadow DOM ?</p><p>🔗 <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.mozilla.org/en-US/do</span><span class="invisible">cs/Web/API/Web_components/Using_shadow_DOM</span></a></p><p><a href="https://mastodon.xyz/tags/css" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>css</span></a> <a href="https://mastodon.xyz/tags/html" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>html</span></a> <a href="https://mastodon.xyz/tags/DOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DOM</span></a> <a href="https://mastodon.xyz/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a></p>
castastrophe<p>Web components compadres, what is your favorite way to style your web components? Thinking about techniques that consider customizability and CSS developer experience, as well as performance. Share with me your favorite libraries and tell me why you like their approach! <a href="https://front-end.social/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a> <a href="https://front-end.social/tags/styling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>styling</span></a> <a href="https://front-end.social/tags/designsystems" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>designsystems</span></a></p>
That HTML Blog & The Spicy Web<p>I hate saying things which seem blindingly obvious, but when Famous People™ such as Theo on YouTube make these basic mistakes, I wonder. 🧐</p><p>So here you go:</p><p>`document.querySelector("# my-dumb-button").addEventListener(...)` is completely obsolete in the year 2025.</p><p>Never do that again please. You don't need to!</p><p>If you're wondering “well, what should I do instead?”, check the comments; we'll talk about what to do instead. Apparently it will BLOW YOUR MIND! 😂</p><p><a href="https://intuitivefuture.com/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> <a href="https://intuitivefuture.com/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://intuitivefuture.com/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a></p>
Lorenz Kahl<p><span class="h-card" translate="no"><a href="https://front-end.social/@jensimmons" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>jensimmons</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@westbrook" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>westbrook</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@mozilla" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>mozilla</span></a></span> is it a known issue that Safari &amp; Firefox Reader Mode ignore content rendered by Web Components in the Shadow DOM - even SSR‘ed content using DSD (iOS &amp; Mac)</p><p><a href="https://techhub.social/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://techhub.social/tags/DeclarativeShadowDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DeclarativeShadowDOM</span></a> <a href="https://techhub.social/tags/DSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DSD</span></a> <a href="https://techhub.social/tags/SSR" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SSR</span></a></p>
Lars Laade<p>I need an event or callback before disconnectedCallback in my web component. I have to call an unmount function from a widget (react?) before the node is removed from the DOM. Any ideas? I have no control when the removal happens.</p><p><a href="https://social.vivaldi.net/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://social.vivaldi.net/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a></p>
KungFuDiscoMonkey<p>Drag and Drop and Django <a href="https://paultraylor.net/blog/2025/drag-and-drop-and-django/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">paultraylor.net/blog/2025/drag</span><span class="invisible">-and-drop-and-django/</span></a></p><p><a href="https://social.tsun.co/tags/django" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>django</span></a> <a href="https://social.tsun.co/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> <a href="https://social.tsun.co/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a></p>
Frontend Dogma<p>The Problem With Web Components, by (not on Mastodon or Bluesky):</p><p><a href="https://dev.to/besworks/the-problem-with-web-components-4f8" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dev.to/besworks/the-problem-wi</span><span class="invisible">th-web-components-4f8</span></a></p><p><a href="https://mas.to/tags/webcomponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webcomponents</span></a></p>