#WebComponent

Benny Powers 🇮🇱🦁bp@social.bennypowers.com
2026-01-06

🚚 New cem release! The standards-based #WebComponent multitool just released v0.9.0 including support for #JavaScript class mixins, numerous bug fixes, and an overhauled and much more readable docs site.

Give it a try today in your web components project and let me know what you think!

bennypowers.dev/cem/

github.com/bennypowers/cem/releases/tag/v0.9.0

Nicod, The Fediverse Dude 🐒nicod@diaspodon.fr
2025-12-20
Inautiloinautilo
2025-11-30


Hallucinations using web components · How to make your self-written posts look machine‑written ilo.im/168oqv

_____

2025-11-17

This weekend, I was inspired by the once-common, now-absent "Turbo" button of computers past. So I implemented a #webComponent that reproduces the experience of pressing one and watching the little LED turn off and on.

Wanna see?

🔗 beige-buttons.danq.dev

Веб-стандартыwebstandards_ru
2025-11-10

<color‑input> — современный веб‑компонент Адама Аргайла для выбора цвета, который поддерживает широкий цветовой охват (sRGB, Display P3, Rec2020) и конвертирует между sRGB, HSL, HWB, LAB, LCH, OKLCH и OKLAB. Построенный на Color.js, Preact Signals и Shadow DOM, он настраивается через CSS parts и поставляется в виде tree‑shakeable ES-модулей. Кастомный элемент автоматически регистрируется при импорте и работает в браузерах с Popover API.

color-input.netlify.app/

Сolor-input. A modern color picker web component with wide-gamut support.
2025-11-07

Does anyone have a favorite #WebComponent that validates at least one of a group of checkbox inputs is checked?

#WebComponents #HTML #CustomElements

2025-09-16

#webComponent thought for the day: I'm thinking of changing my approach. I always prefer HTML first. However, if JS failed, for some components, I didn't want to show anything as they wouldn't be functional without JS, so I added elements dynamically. However, that can be resolved by setting display:none in CSS then showing them elements with JS once loaded. Maybe this would be better 🤔

2025-09-13
Alex Grantlocalnerve
2025-09-09

A while ago, I had a need for a vertical scrolling assistant that skipped to styled articles, so I built one and put it out in public.

Accessible, configurable vanilla

npmjs.com/package/@localnerve/

Page includes a link to a live demo.

2025-09-05

It's Twofer Friday! 🥳

1) @11ty website redesign: patrickgrey.co.uk/ 💅

2) I'm launching v1 of my small #webComponent library: Naked Web Components! They are focussed on function with minimal styling.

Read all about it here: patrickgrey.co.uk/projects/nak and find the code here: codeberg.org/patrickgrey/naked.

I never expected to create a component called <naked-sticky-overflow>... 😬

I'd love to know if they are useful for anyone 🥰

Alex Grantlocalnerve
2025-09-03

I wished there was a native todo app web component that you could drop into your web application under construction and test data update and mutation flows.

So I made one.

github.com/localnerve/editable

Inautiloinautilo
2025-08-26
2025-08-12

Trying out moving Joist over to Codeberg. If you are over there give it a star and a watch!

codeberg.org/deebloo/joist

#webdev #webcomponent #javascript

Stephan H. Wisselstw@chaos.social
2025-08-12

Why do all #webcomponent examples use innerHtml = when innerHtml is inherently insecure?

Inautiloinautilo
2025-08-04
2025-07-23

Because of the generic nature of the terms, I'm having trouble searching for something that should have a page in the Nuxt docs somewhere:

I want to use an existing Web Component (developed by a third party) in a Nuxt app. It is having trouble with the SSR and I can't figure out how to work around it so that the web component is named in the template area but is only initialized in the browser.

Or, alternately, what I can tell the developer to do differently to make it work. It says it can't find "HTMLElement".

#nuxt #webcomponent

Dave 🧱 :cursor_pointer:DavidDarnes@mastodon.design
2025-07-19

Wanted to try out this <syntax-highlight> #WebComponent for myself andreruffert.github.io/syntax-

The result is super clean and a fair chunk smaller than what's typically used. Even works with contenteditable!
codepen.io/daviddarnes/pen/bNV

Benny Powers 🇮🇱🦁bp@social.bennypowers.com
2025-07-14

You know what I love? clicking on the "copy" button on #github and having it do literally nothing

see, this button used to be a
#webcomponent, and it would just work in all cases, but that was unacceptable because you can't hire people to write web components


So now it's a fabulous, very functional, very just
#javascript #react component, and I'm happy because even though it doesn't work, it looks great on a State Of survey.

2025-07-08

Wouter Lemaire shows how to use any #webcomponent in #ui5 apps at #ui5con 2025

Picture shows Wouter Lemaire at the stage
xoron :verified:xoron@infosec.exchange
2025-06-28

Are Web Components & Cybersecurity A Better Combo?

I'm not trying to dunk on popular #UI #frameworks – I'm sure they're totally fine for #cybersecurity stuff, probably get loads of reviews and #audits.

But from my angle: Web Components are *native* to the #browser. Doesn't that just inherently reduce the risk of **#SupplyChainAttacks** (you know, like a rogue `npm install` on a bad network) for your #AppSecurity?

Or am I overthinking it, and the #framework choice is less important than the #browser, #OS, or #device running it? What are your thoughts, #DevCommunity?

---

Quick context: I've got a #ReactJS #messagingApp (repo here: github.com/positive-intentions) and a separate #UIFramework (repo here: github.com/positive-intentions) built with #Lit (which uses Web Components). I'm genuinely wondering if there's a compelling #cybersecurity reason to refactor the chat app to use my #WebComponent UI framework. Might be a whole new level of #SecurityByDesign for #FrontEndDev.

FYI, same question's on Reddit here: reddit.com/r/ExperiencedDevs/c, got some good #insights, but want to make sure nothing's getting overlooked! Let's discuss #InfoSec #WebDev #JavaScript #OpenSource #TechQuestion.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst