Component Driven UI with ViewComponent
summary
Builds a Rails admin for facility management using the ViewComponent gem plus Tailwind and optional Stimulus, removing most JS and keeping domain UIs server-rendered. Implements reusable components: stats, filter form (handles 20 filters with a builder pattern), page header, and a table component with column DSL and record linking. Uses Lookbook previews and Capybara smoke tests instead of heavy unit tests, a fetch_with_fallback color hack to avoid prod errors, and keeps components small and testable.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 1:52Why ViewComponent
- 5:48When to use ViewComponent
- 11:11Real code example
- 26:42Table component deep dive
- 34:35Q&A
related talks
31mComponent Driven UI with ViewComponent gem
45mView Components in Rails
35mFrontendless Rails frontend
34mViewComponents in the Real World
57mViewComponents in the Real World
38mRethinking the View Layer with Components
28mSchema-Driven UI Components: Innovating Headless ERP
01h 28mGet started with Component-based Rails applications!
