Ahmed Nadar
Rails & front-end developer, Indie maker, and building products and Sass for startups. Write articles to help startups and developers.
In Rails, a few gems add component functionality (like mountain_view). Unfortunately, the side effect of using components after some time is adding more specific logic in generic components.
I think you're right that it would be helpful to have a drop-in gem to provide some nice looking components. CSS frameworks like Bootstrap have helped with that in the past. I've been meaning to write a blog post about this, but the magic combination that has been working well for us has been Hotwire, Tailwind, and the ViewComponent gem. We've built our own components pretty easily and I'd recommend that stack for anyone who feels like components are lacking in Rails.
You are right Avi. Rails is missing this magic dust πͺπ¨ that empowers developers and add beauty to any Rails app. I've used yours and it is wonderful well written. As a developer with front-end and design experience, I started mine UI components to save myself time and work. And after a few weeks I launched Rapidrails UI as a product built on top on ViewComponent and TailwindCSS. While it is not an open source, I'm working on an free one, as a part of Rails Rails agency public kit.
I echo your voice, we need more Rails UI components.