▲ | spankalee 9 days ago | |||||||||||||||||||||||||
It's not just that many design systems are tied to a particular framework, it's that they don't play well with HTML, and therefore classically server-rendering frameworks like Rails, Django, PHP, etc. With custom elements you can just drop `<my-dropdown>` in your server template and that's where the dropdown widget will be. Something like Shoelace[1] would be very nice to use with Rails. | ||||||||||||||||||||||||||
▲ | Spone 9 days ago | parent | next [-] | |||||||||||||||||||||||||
Sadly Shoelace doesn't play well with Rails' FormBuilder... | ||||||||||||||||||||||||||
▲ | troupo 9 days ago | parent | prev [-] | |||||||||||||||||||||||||
Custom Elements don't play well with HTML either. And "just dropping <my-dropdown>" is not much different from "just dropping <div id=app> and running some framework code on it" All the reasons are here: https://dev.to/stuffbreaker/web-components-and-ssr-2024-edit... | ||||||||||||||||||||||||||
|