#ViewComponent
❥ Sascha Karnatz has a PR up with support for ViewComponent 4 (#6540)
❥ Sofia is cooking up some extensibility improvements to the StockCoordinator (#6527)
❥ Alistair is continuing the effort to fix up and modernize solidus_stripe

more to come!
August 21, 2026 at 9:28 PM
Finished migrating an Angular application to htmx.org and Spring ViewComponent together with my colleague:
Removed 5376 lines of Typescript
Added 2513 lines of Kotlin

28% decrease in overall lines of code.
From 19 runtime dependencies to 2 -> alpinejs.dev and
htmx.org
November 18, 2024 at 8:53 AM
Tune in Monday for the Spring Office Hours with @danvega.dev and @dashaun.bsky.social at 19:00 CET to learn more about htmx.org and Spring ViewComponent!

www.youtube.com/watch?v=Y7BZ...
S3E39 - Modern Server-Side Applications with HTMX and Spring ViewComponent
YouTube video by SpringDeveloper
www.youtube.com
November 14, 2024 at 2:22 PM
There's 50 days until Christmas and I have 45 Phlex videos. How about a Phlex on Rails video advent calendar?

I'll do my best to post some videos from the Phlex course starting with "Why Phlex?" since the intro video is free. This one compares to ViewComponent if you're curious.

Follow along!
Why Phlex?
This video course teaches you how to use Phlex to build high quality Rails frontends that you can use with existing Erb apps or go all-in and build from the ground up with components. Phlex brings san...
beautifulruby.com
November 4, 2025 at 7:42 PM
A standard interface between components and controllers would be interesting for Phlex and ViewComponent.

I think Literal touches that and I took a swing with Superview.

It feels like `#render_in` is half the interface.
February 19, 2025 at 1:11 AM
It would be fun to implement a ViewComponent add-on for Phlex, but once people get a taste of writing HTML in Ruby, the need for such a contraption melts away.
February 18, 2025 at 9:26 PM
In case you missed last week's article, I wrote about Superview, a gem I made that renders Phlex and ViewComponent views for Rails that taps into the `method_for_action` controller method.

Here's the link for that: terminalwire.com/articles/sup...
Build Rails Apps with Components
Automatically render Phlex and ViewComponents for controller actions with Superview
terminalwire.com
February 5, 2025 at 1:31 AM
The next CFP I submitted is about building Rails apps from the ground up with ViewComponent and Phlex components.

The slides themselves are a Rails app built entirely out of Phlex components, which is open-source BTW if you want to build your RailsConf deck this way.
January 31, 2025 at 6:02 PM
Not gonna lie, hoping to nerd snipe somebody on this one.

If you take the plunge, I suspect Phlex kits might be useful: github.com/phlex-ruby/p...

If somebody takes a swing at this and gets it working with ViewComponent, I'd be interested in merging it with Superview.
January 31, 2025 at 12:24 AM
Technically it's not an XSS attack because `ViewComponent` doesn't exist and the example I provided absolutely won't run unless I change to `ViewComponent::Base`. 🤣

Pushing out this fix as I wonder why people still use Erb. 🤔

Thanks for pushing safe code examples that run. 🙏
January 30, 2025 at 7:58 PM
Today I released Superview 1.0 and wrote about it at terminalwire.com/articles/sup...

It's how you can use Phlex and ViewComponent classes as actions in your Rails controllers without a bunch of boilerplate.

I use Superview in several of my production applications, including @terminalwire.com.

✌️
Build Rails Apps with Components
Automatically render Phlex and ViewComponents for controller actions with Superview
terminalwire.com
January 29, 2025 at 7:48 PM
That’s what Superview is doing. There’s a few other interfaces to worry about with Superform, and I have no interest in building or maintaining ViewComponent support, but hopefully somebody else will without adding much overhead.

github.com/rubymonolith...
GitHub - rubymonolith/superview: Create Rails applications entirely from Phlex, ViewComponents, or any object that responds to `#render_in`.
Create Rails applications entirely from Phlex, ViewComponents, or any object that responds to `#render_in`. - rubymonolith/superview
github.com
January 4, 2025 at 10:01 PM
🤔 I suppose some people will say that Phlex is a weird DSL... so if you loooove Erb, you will absolutely hate what I'm cooking up unless I make it work with ViewComponent—I won't haha, but if somebody else contributes whatever I build should work for them.
January 4, 2025 at 9:53 PM
I’ve seen enough Phlex component libraries to say that they’d benefit from this approach. I could see that helping other Ruby UI kits as well like PrawnPDF, ViewComponent, etc.

I think Configuration classes could benefit from this approach too.

Haven’t thought about much beyond that.
December 30, 2024 at 9:52 PM
If you're not into stupid jokes, I've got something in the works where you can use ViewComponent or Phlex classes in a controller to render them without all the `def edit`, etc. boilerplate.

Follow the repo on Github and give it a star at github.com/rubymonolith... so you get updates when it lands.
December 21, 2024 at 1:27 AM
Just for fun I got ViewComponent working in Superview: github.com/rubymonolith...

Should I troll ViewComponent and have the specs generate Phlex code? Should I keep `phlex` in `render phlex VCView` or change it to something neutral?

🤣🧌
December 21, 2024 at 1:24 AM
Preset Galaxy's tech stack incorporates a number of languages and techniques:

* Ruby on Rails
* Serbea templates (variant of ERB)
* ViewComponent
* Lifeform (declarative forms)
* Many custom elements (and Ruby-based SSR!)
* Sidekiq & Signals-based data flow
* 2FA & various email service […]
Original post on indieweb.social
indieweb.social
June 22, 2026 at 3:36 PM
深入解析Rails ViewComponent 4.0.0:新时代的组件化视图框架革新

https://qian.cx/posts/CD78525F-EEFD-4BCE-AFBC-058405532826
December 4, 2025 at 9:18 PM
The ViewComponent library is better than what you get out of the box in Rails (partial templates, maybe Turbo Frames if you hate yourself), but man every time I have to use its API beyond the simplest case, I have a bad time. It's wild because some of the best DSLs I've ever used are Ruby.
June 18, 2026 at 4:12 PM
LiveComponent is a client-side rendering and state management library for ViewComponent.

livecomponent.org
Live Component Docs
livecomponent.org
October 31, 2025 at 9:43 PM
Quem diria que eu estaria espalhando a palavra do uso da gem ViewComponent hehe
June 15, 2023 at 7:42 PM
The view part would be similar to be honest, the only thing is that you can encapsulate in methods some logic inside the viewcomponent class. The HTML+ERB part wouldn't change in both areas unless in your partial you add some ruby code inside it.
As I said, the advantage for me is unit testing
November 20, 2025 at 9:26 AM
I wouldn’t consider viewcomponent as that because just write html + FORMAT, the advantage is that I can test unit the rendering logic that could contain that visual fragment. Same for trailblazer cells.
November 20, 2025 at 6:57 AM
I've been building an app and dealing with different classes has been one of my main issues when using ViewComponent. This gem is exactly what I've been looking for! Looking forward to trying it out.
January 22, 2025 at 11:50 AM