3 ms·
But where is the difference to e. g. UIkit? Only write in component-style without div-tags and use css-vars?
by progx 6y ago
But where is the difference to e. g. UIkit?
Only write in component-style without div-tags and use css-vars?
- claviska 6y agoThe difference is in how they're built and consumed. UIkit sprinkles CSS and JS on top of existing HTML elements: <div uk-dropdown></div> Shoelace defines web components, which are custom elements: <sl-dropdown>
- 1337shadow 6y agoWell Shoelace/StencilJS/WebComponents leverages browser ESM support and as such is able to import scripts as-needed as you browse, you can see that by leaving the Networking tab open in the browser inspector, and I believe that's pretty nice - that's the kind of reason why webpack got chunk splits ... You can probably achieve that with UIkit if you make one bundle per page with webpack or something, but with web components such as Shoelace you get that for free. So there's that, wether it matters to you or not is up to you of course.