# ViewComponent

Ruby framework for building reusable, encapsulated view components in Ruby on Rails applications.


Source: https://findsoftware.frbit.cloud/view-component/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- home: https://viewcomponent.org
- repository: https://github.com/ViewComponent/view_component
- docs: https://viewcomponent.org

### Identity

- status: active
- maintainer: ViewComponent Team
- maintainerType: community
- parent: unknown
- firstRelease: 2019
- hqCountry: unknown

### Kind

- category: framework
- hosting: ruby
- language: ruby
- runtime: ruby
- runtimeMin: ruby 3.2
- basedOn: rails

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: erb, haml, slim
- i18n: I18n translations

### Rendering and deploy

- runsAs: unknown
- renderingModes: unknown
- installMethod: bundler (Gemfile)

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 4
- latestReleaseDate: 2026-10-27

### Adoption

- githubStargazers: 3571
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 307
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 1602
- dependentPackages: 92

### Sources

- urls: https://viewcomponent.org (read 2026-10-28)
- urls: https://github.com/ViewComponent/view_component (read 2026-10-28)
- urls: https://github.com/ViewComponent/view_component/blob/main/README.md (read 2026-10-28)
- firstRelease: https://github.com/ViewComponent/view_component/releases/tag/v1.0.0 (read 2026-10-28)
- maintainer: https://github.com/ViewComponent/view_component/blob/main/view_component.gemspec (read 2026-10-28)
- language: https://github.com/ViewComponent/view_component (read 2026-10-28)
- runtime: https://github.com/ViewComponent/view_component/blob/v4.20.0/view_component.gemspec (read 2026-10-28)
- runtimeMin: https://github.com/ViewComponent/view_component/blob/v4.20.0/view_component.gemspec (read 2026-10-28)
- category: https://github.com/ViewComponent/view_component/blob/main/README.md (read 2026-10-28)
- basedOn: https://github.com/ViewComponent/view_component/blob/main/README.md (read 2026-10-28)
- templating: https://viewcomponent.org/compatibility.html (read 2026-10-28)
- i18n: https://github.com/ViewComponent/view_component/blob/main/docs/guide/translations.md (read 2026-10-28)
- installMethod: https://github.com/ViewComponent/view_component/blob/main/docs/guide/getting-started.md (read 2026-10-28)
- license: https://github.com/ViewComponent/view_component (read 2026-10-28)
- licenseModel: https://github.com/ViewComponent/view_component (read 2026-10-28)
- currentMajor: https://github.com/ViewComponent/view_component/releases/tag/v4.20.0 (read 2026-10-28)
- latestReleaseDate: https://github.com/ViewComponent/view_component/releases/tag/v4.20.0 (read 2026-10-28)
- githubStargazers: https://github.com/ViewComponent/view_component (read 2026-10-28)
- contributors: https://api.github.com/repos/ViewComponent/view_component/contributors (read 2026-10-28)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/view_component (read 2026-10-28)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/view_component (read 2026-10-28)

## Notes

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](https://github.com/ViewComponent/view_component/blob/main/docs/guide/getting-started.md) 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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
