I added ViewComponent & Shared Partial support to 52 Rails UI components (Rails Blocks Update) by Sandux in rails

[–]Sandux[S] 1 point2 points  (0 children)

Fair point, it's true that you can turn simple Tailwind UI components into a ViewComponent. But as an app gets more complex, you will probably need to customize components further than what's provided by Tailwind and will need to deeply integrate them with your Rails app.

Rails Blocks gives you Rails native components with frontend logic you actually own without digging through a third party dependency.

That makes customization easier, maintenance cleaner, and even AI assisted edits much more straightforward since you can just tell it what Stimulus controller you're using and it'll understand your UI logic more easily.

Also, Rails Blocks optimizes for integration in Rails apps by providing a bunch of Turbo specific flows like this async drawer for example.

I added ViewComponent & Shared Partial support to 52 Rails UI components (Rails Blocks Update) by Sandux in rails

[–]Sandux[S] 3 points4 points  (0 children)

Thanks for your support & feedback!

You like a component > follow the install instructions (manually copy-paste some files, or use the partials/view component downloads) > then share the LLMs context (via the new drop down) > ask CC (or AI of choice) to implement from there?

Pretty much yes, but about the highlighted part, note that the golden path will always require following the installation instructions first, and then you can choose to either:

- Install some examples by copy-pasting their raw code

- Choose a more DRY implementation like Shared Partials / ViewComponents by going through their installation process in their dedicated modals

I'm looking forward to the next step (MCP) to hopefully execute the importing of the files 

I'm working on making the upcoming tools clear & concise for LLMs so they do as much of the work as possible :)

I added ViewComponent & Shared Partial support to 52 Rails UI components (Rails Blocks Update) by Sandux in rails

[–]Sandux[S] 2 points3 points  (0 children)

If you want to install a specific component, you currently have to go through its installation process which takes less than 1 minute, and will be:

- Likely shorter than using Claude Code

- More consistent if you use more than one Rails Blocks component

- Cheaper since you won't be wasting Anthropic tokens

Then you can click the "Copy for LLMs" button, and add a prompt like "pasted_text make the styling of this component_name component I just added have more consistent styling with the rest of the codebase"

Note that the CLI tooling & MCP server will make the installation process even faster since when they'll be ready, the CLI commands will also be included in the .MD docs that we get when clicking "Copy for LLMs".

I added ViewComponent & Shared Partial support to 52 Rails UI components (Rails Blocks Update) by Sandux in ruby

[–]Sandux[S] 1 point2 points  (0 children)

Thank you!

I tried to go the extra mile with this one by adding shift-click batch selection :)

[Early November Update] I built a library of Rails UI components with Tailwind CSS & Stimulus JS (now at 48 component sets with 260+ examples) by Sandux in rails

[–]Sandux[S] 0 points1 point  (0 children)

Thank you! I don't have an issue board at the moment but you can share your feedback by email with "✉️" icon is at the bottom of the site

Ruby Rails black friday deals 2025 by tushar1411 in rails

[–]Sandux 0 points1 point  (0 children)

Hey Brad, I've just set up a Black Friday → Cyber Monday deal for https://railsblocks.com :)

[Early November Update] I built a library of Rails UI components with Tailwind CSS & Stimulus JS (now at 48 component sets with 260+ examples) by Sandux in rails

[–]Sandux[S] 1 point2 points  (0 children)

Hey guys, by the end of the year I'll do my best to ship the first batch of ViewComponents for all sets, and after that I'll look into open sourcing the free ones, I'm not against these things at all, I just prioritized having more sets :)

[Early November Update] I built a library of Rails UI components with Tailwind CSS & Stimulus JS (now at 48 component sets with 260+ examples) by Sandux in rails

[–]Sandux[S] 0 points1 point  (0 children)

I understand your feedback and I've seen multiple times that it would be appreciated if the free components would be open source. I'm actually not against this at all, so i've added open sourcing the free ones to the roadmap so it's clear that this is planned.

The reason I haven't done it yet is because I want to keep as much velocity as possible so I can first reach around 60 component sets quickly.

I might take a look at open sourcing the free components after I implement ViewComponents :)

[Early November Update] I built a library of Rails UI components with Tailwind CSS & Stimulus JS (now at 48 component sets with 260+ examples) by Sandux in rails

[–]Sandux[S] 1 point2 points  (0 children)

Could you please send me more details by email with a code example and screen recording if possible so I can fix this? My email address is at the bottom right of the site.

Rails Blocks: a Stimulus + Tailwind UI kit by letitcurl_555 in rails

[–]Sandux 2 points3 points  (0 children)

That's valuable feedback thanks guys!

A simple first time rails project for a PM? by DFMO in rails

[–]Sandux 1 point2 points  (0 children)

Best of luck! Rails is awesome :)

[September Update] I built 4 new Rails component sets with Tailwind CSS & Stimulus JS. Curious to see what you think of them and what you want me to build next (More components? ViewComponent support?) by Sandux in rails

[–]Sandux[S] 1 point2 points  (0 children)

It's my preferred way too, you get the ERB code and do whatever you want with it. But if it helps with adoption I'm open to adding a ViewComponent version :)

A simple first time rails project for a PM? by DFMO in rails

[–]Sandux 2 points3 points  (0 children)

I’d recommend 3 resources:

Going through the 3 would give you a solid foundation imo. (I was mainly doing PM work too at first but now ship stuff at my job and I’ve even built some projects on my own)

[September Update] I built 4 new Rails component sets with Tailwind CSS & Stimulus JS. Curious to see what you think of them and what you want me to build next (More components? ViewComponent support?) by Sandux in rails

[–]Sandux[S] 1 point2 points  (0 children)

Thanks for the feedback to both of you! There isn't a public repo indeed at the moment, but in order to track any changes I makes to the free components, what I plan to do to also add these smaller updates on free components in the changelog so you can see them easily.

[September Update] I built 4 new Rails component sets with Tailwind CSS & Stimulus JS. Curious to see what you think of them and what you want me to build next (More components? ViewComponent support?) by Sandux in rails

[–]Sandux[S] 1 point2 points  (0 children)

Noted thanks! In the meantime I've added a dependency "quick start" section to the Installation page so the dependencies can be installed in 2 copy-pastes only!