DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

New Web Component! <live-filter>

A Web Component for filtering items using a text input. Made this for a friend a while back and thought I should wrap it up into a neat package to go alongside my other #WebComponents.

I'll get a write up done soon but for now here's the GitHub repo and npm package:
📂 https://github.com/daviddarnes/live-filter
📦 https://www.npmjs.com/package/@daviddarnes/live-filter

DavidDarnes,
@DavidDarnes@mastodon.design avatar

Updated <live-filter> with a case attribute option so filtering doesn’t have to match capitalisation #WebComponents

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

80 GitHub stars on my starter template 😳
https://github.com/daviddarnes/component-template

hawkticehurst, to random
@hawkticehurst@fosstodon.org avatar

New post: Bring your own base class

The discussion over on a thread by @chriscoyier spurred me to respond in the form of a blog post (and also finally add the seventh installment of the web component series I started in December).

I talk about how building dependency-free that last a life time does not have to mean a bad developer experience.

https://hawkticehurst.com/writing/bring-your-own-base-class/

chriscoyier, to random
@chriscoyier@front-end.social avatar

jQuery plugins depended on jQuery, and when jQuery went out of favor, they ended up in the junkyard.

There is all sorts of componentry built exclusively on React, limiting it to React-based sites. As React goes out of favor, they will end up in the junkyard. (Same with any framework-specific extension.)

But with Web Components... it seems like the story will end differently. If they are built without dependencies, they might just live as long as the web does.

DavidDarnes,
@DavidDarnes@mastodon.design avatar

@cferdinandi @chriscoyier I’m afraid that’s how the community works. Nobody is really going to get hyped about my handful of tiny Web Components, they’re getting doughy-eyed at the big shiny frameworks. And I’m kinda ok with that. If Web Awesome helps Web Components attain a bigger audience then great. At least then more people get to appreciate a slice of the benefits to #WebComponents

MaxArt2501,
@MaxArt2501@mastodon.social avatar

@chriscoyier I think that, more than just a "dependency", jQuery for jQuery plugins is a prerequisite. Just like React is for React component libraries.

OTOH, Web Component libraries have Lit (or FAST or Stencil...) as a "real" dependency, meaning they uses it for reactivity and such. Even if Lit goes out of favor, the components built with it will always be usable in whatever environment. That's a key difference.

evangelos, to random
@evangelos@libretooth.gr avatar

What is behind the perceived complexity of as a web standard?

Is there an article that addresses the reasons behind its design decisions?

MaxArt2501, to javascript
@MaxArt2501@mastodon.social avatar

A response to @cferdinandi 's recent post(s) on JavaScript and Web Components:
https://dev.to/maxart2501/javascript-is-not-the-problem-k4e

I know he didn't explain his position in details, so a 1800-word article sounds a little unfair, but I think dry and sharp statements need adequate context and analysis.

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

question: Who are you reading, watching or listening to when you want to know more about Web Components?

DavidDarnes,
@DavidDarnes@mastodon.design avatar

Also looking for juicy resources for . Let me know of any that you valued 😊

DavidDarnes, (edited )
@DavidDarnes@mastodon.design avatar

Thanks everyone for your #WebComponents people and resources recommendations! If you have any other recommendations let me know, thank you.

Watch this space as I'll be posting a bit more myself on the subject through the zeroheight blog and our other resources:

Blog: https://zeroheight.com/blog/
RSS: https://zeroheight.com/blog/feed
Resources: https://zeroheight.com/resources/

patrickfulton, to random
@patrickfulton@mastodon.social avatar

Hey folks: we just opened a senior staff engineer role on the Adobe Spectrum team to help lead development of the Spectrum Web Components project. Come work with me and wonderful, smart folks like @jnjosh, @garthdb, @castastrophe and others! https://adobe.design/jobs/job-posts/prototyping-and-engineering/r145802-sr-staff-design-engineer

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

New Web Component! <random-source>

"The random-source Web Component allows you to cycle randomly through different audio or video sources, utilising existing HTML elements and providing an elegant fallback experience.”

https://darn.es/random-source-web-component/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

New incoming 👀

pablolarah, to webdev
@pablolarah@mastodon.social avatar

💡🌖 But what about the shadow DOM?
by Chris Ferdinandi @ChrisFerdinandi @cferdinandi

https://gomakethings.com/but-what-about-the-shadow-dom/

leaverou, to random
@leaverou@front-end.social avatar

The #StateOfHTML 2023 results are finally out!

Enjoy insights from 22K responses about the state of the web platform, from HTML and interactivity to #webcomponents, PWAs, and a lot more.

This project is a monumental effort from people across the world. We even designed novel data collection UIs to gather the data we needed while minimizing friction, which I plan to write a case study about soon.

https://2023.stateofhtml.com/en-US

cssbasics, to random
@cssbasics@hachyderm.io avatar

More ways to instantiate : "Last week, we looked at different ways to setup the HTML in a Web Component. One of the challenges with running your code in the constructor() is that sometimes the custom element is created, but none of the nested HTML inside it is ready yet. We looked at a few different ways to fix that, but today, I wanted to share two more. Let’s dig in!" https://gomakethings.com/more-ways-to-instantiate-web-components/

pablolarah, to webdev
@pablolarah@mastodon.social avatar

🟢The wrong way to do Web Components
by Chris Ferdinandi @ChrisFerdinandi @cferdinandi

https://gomakethings.com/the-wrong-way-to-do-web-components/

tylersticka, to wordpress
@tylersticka@social.lol avatar

I still have all of these issues with WordPress and portable patterns: https://cloudfour.com/thinks/wordpress-blocks-portable-patterns-and-pain-points/

But, it’s really heartening to see what the @enhance_dev project is doing to break down those barriers, as detailed here by @ryanbethel: https://begin.com/blog/posts/2024-05-03-portable-ssr-components

(I’ve updated my article to include a link.)

#WordPress #PHP #WebComponents #WebDev

khalidabuhakmeh, (edited ) to webassembly
@khalidabuhakmeh@mastodon.social avatar

I thought I would take up the challenge of getting @enhance_dev working with with the ability to SSR web components directly into the request pipeline.

Yep... it works. TagHelpers make this nice and natural part of the web stack.

Update: You can try it out for yourself at this repo. https://github.com/khalidabuhakmeh/EnhanceWebComponents

stuffbreaker, to random
@stuffbreaker@mastodon.social avatar

The individual JSX types from the integration package are now exportable and the package now has a link to a sandbox you can play with!

https://www.npmjs.com/package/custom-element-jsx-integration

noleli, to random
@noleli@mastodon.social avatar

Ok fam, question for ya. A well-known limitation of ::slotted() is that it only selects direct children. I’m making a component that wraps nested lists and I want to apply styles to all child slotted <ul>s.

Is it reasonable to work around this by having the component have the parent document adopt a stylesheet?

pablolarah, to webdev
@pablolarah@mastodon.social avatar
jrjurman, to webdev
@jrjurman@fosstodon.org avatar

Another update to Tram-Deco 🎉

Been spending some time to make the project smaller, and make it easier to generate components for other projects! This wasn't possible previously, but with the newly released setHTMLUnsafe, we now can!

Also, new logo 🖌️

Check it out, and I'd love to know what you think of this way of creating Native Web Components!

https://github.com/Tram-One/tram-deco

mobileatom, to webdev
@mobileatom@flipboard.com avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • ngwrru68w68
  • JUstTest
  • cubers
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • lostlight
  • All magazines