techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#webcomponents

9 posts9 participants0 posts today

Received some feedback from a team using the Custom Element library for an Enterprise Design System I've been working on. Some cross-component lifecycle adjustments were necessary to enhance React compatibility. The nice part was that they also mentioned their (React 19) application was much faster with custom elements, both perceptually and measurably (using Lighthouse).

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.

Introducing "ShadowRoot Injector" 🎉
github.com/Tram-One/shadowroot

ShadowRoot Injector is a way to declaratively define HTML, that will automatically insert when custom elements appear in the DOM. 🪡

Check out the link and examples, and let me know what y'all think!
#WebComponents #HTML #ShadowDOM #WebDev

🪡 declaratively define shadowroots to repeat in HTML templates - Tram-One/shadowroot-injector
GitHubGitHub - Tram-One/shadowroot-injector: 🪡 declaratively define shadowroots to repeat in HTML templates🪡 declaratively define shadowroots to repeat in HTML templates - Tram-One/shadowroot-injector

"Croissant! Building a No-Framework Web App" by @db

👉 dbushell.com/2025/07/11/croiss

The only thing missing from the article is the benefits: no more breakage due to dependency upgrades/ecosystem peer pressure and improved performance. Especially great for side projects—no more byte rot when the project inevitably gets put on the back burner for a few months.

dbushell.comCroissant! Building a No-Framework Web App
More from David Bushell 🥐

I put together a simple PR to try to improve the @angular / #WebComponents validation. This would let you be more specific about which components get excluded from validation instead of everything.

I'm working on the custom element validation piece of it later.

github.com/angular/angular/pul

PR Checklist
Please check if your PR fulfills the following requirements:

 The commit message follows our guidelines: https://github.com/angular/angular/blob/main/contributing-docs/commit-message-...
GitHubfeat(core): add `isCustomElement` property to modules and components by break-stuff · Pull Request #62638 · angular/angularBy break-stuff

Move over Bootstrap.

Web Awesome is an awesome successor to what in my opinion was already the best open source #WebComponents library (Shoelace) on the market. Now we have the best #CSS framework on the market.

All of the CSS is…um…just CSS and all of the components are…um…just web components. Native #WebDev APIs across the board. 🙌

Take a first look at the brand new public beta:

thathtml.blog/2025/07/web-awes

That HTML Blog · Web Awesome, the First All-in-One Web Components + CSS Framework, is Finally Here
More from Jared White (🏳️‍⚧️ ally)
Replied in thread

@leaverou These all power HTML in some way or other...

- Scoped Custom Element Registries
- Reference Target API
- elementInternals.type github.com/MicrosoftEdge/MSEdg
- Declarative CSS Modules and the adoptedstylesheets attribute github.com/MicrosoftEdge/MSEdg
- Declarative Partial Updates github.com/WICG/declarative-pa
- DOM Parts
- Platform based windowing/virtualization
- <tabs>

I've got lots more for CSS/JS if you get signed up for those.

Good luck with the survey!

Home for explainer documents originated by the Microsoft Edge team - MicrosoftEdge/MSEdgeExplainers
GitHubMSEdgeExplainers/ElementInternalsType/explainer.md at main · MicrosoftEdge/MSEdgeExplainersHome for explainer documents originated by the Microsoft Edge team - MicrosoftEdge/MSEdgeExplainers