by maxloh · 1w ago · 0 comments
It just feels like the right way React should be.
Vercel's UI SDK just launched with Solid support.
Theres also Kobalte, Ark UI, Park UI, Solid UI, Shadcn Solid, Corvu, Material Design Solid, and more.
Appreciate the the other examples though.
For instance, to implement a menu you have to support things like keyboard navigation and auto-closing when the user clicks elsewhere.
Gettings these sort of behaviors right across all browsers is oftentimes _hard_, and testing them properly is very time consuming. That's why it's useful to have it built and tested by a large company.
Traditionally, these behaviors came built-in with your "UI Widget Library" of choice (e.g., https://ant.design/). However, widget libraries bring in their own style and subtle opinions. When you are aligned with those everything is great, but when you want to deviate visually or behaviorally then you have a hard time.
In contrast, "headless UI" packages these behaviors (and only the behaviors) as little snippets that you "plug in" to your own widgets/components. Since how these behaviors get to be "plugged in" to components and how they can interact between them may be dictated by the UI framework/library (e.g., react, astro, solid) the headless ui kits explicitly call those that they support.
For Vercel UI SDK specifically, you can check the list of behaviors they implement here https://ui-sdk.dev/docs/core/behaviors
I literally did, for a bunch of my projects and the ones of clients. A friend even did it for a pretty big brand that had a juicy Vercel bill. Burn in hell Guillermo
I'm being facetious, but what would you expect?