3 ms·
I think a lot of that is pushed down to the design system/library implementations. I use Web Components as a lightweight wrapper around that stuff. For exampl
by claytongulick 3y ago
I think a lot of that is pushed down to the design system/library implementations.
I use Web Components as a lightweight wrapper around that stuff.
For example, if I'm using bootstrap I generally have a Web Component that uses all the boostrap styling in the light dom and have a "scene" or "modal" or whatever component that just has regular HTML rendered by lit-html.
The component contains all the functionality for the form - fetching data, filling dropdown lists, validating, submitting, etc... so in that case, the web component isn't at the button level, it's at the logical application feature/form level.
There are plenty of design systems that'll do what you're talking about though, Ionic is probably the most popular, but there's shoelace and a bunch of others that wrap and enhance form element functionality.