←back to thread

Design System Options for Rails

(businessclasskit.com)
101 points strzibny | 1 comments | | HN request time: 0s | source
Show context
thuanao ◴[] No.43640906[source]
It’s too bad most UI libraries ate tied to a particular framework like React, Tailwind, etc. instead of self-contained web component elements.
replies(3): >>43640944 #>>43642257 #>>43644917 #
spankalee ◴[] No.43640944[source]
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.

[1]: https://shoelace.style/

replies(2): >>43641081 #>>43641181 #
1. Spone ◴[] No.43641081[source]
Sadly Shoelace doesn't play well with Rails' FormBuilder...