
ViewComponent
Ruby framework for building reusable, encapsulated view components in Ruby on Rails applications.
viewcomponent.orgrepositorydocs
ViewComponent is a Ruby framework for building reusable, encapsulated view components in Ruby on Rails. A component is a Ruby class that wraps a template, and the getting-started guide installs the gem with a Gemfile entry. The project tests it against ERB, Haml and Slim templates, and translations use a sidecar YAML file.
The ViewComponent Team maintains the gem, and the repository belongs to the ViewComponent organization on GitHub.
Worth knowing
The homepage says version 4 is in Long-Term Support and considered feature-complete.
Sources
- 2026-10-28: links
viewcomponent.org - 2026-10-28: links, Written in, License, License model, GitHub stars
github.com/ViewComponent/view_component - 2026-10-28: links, Categories, Built on
github.com/ViewComponent/view_component/blob/main/README.md - 2026-10-28: First release
github.com/ViewComponent/view_component/releases/tag/v1.0.0 - 2026-10-28: Maintainer
github.com/ViewComponent/view_component/blob/main/view_component.gemspec - 2026-10-28: Runtime, Minimum runtime
github.com/ViewComponent/view_component/blob/v4.20.0/view_component.gemspec - 2026-10-28: Templating
viewcomponent.org/compatibility.html - 2026-10-28: Multilingual
github.com/ViewComponent/view_component/blob/main/docs/guide/translations.md - 2026-10-28: Install with
github.com/ViewComponent/view_component/blob/main/docs/guide/getting-started.md - 2026-10-28: Current major version, Last release
github.com/ViewComponent/view_component/releases/tag/v4.20.0 - 2026-10-28: Contributors
api.github.com/repos/ViewComponent/view_component/contributors - 2026-10-28: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/view_component