gem.sh gem.sh
Home Gems Types Docs Community
  • Modules

    • module ActionView
    • module ViewComponent
    • module ViewComponent::CompileCache
    • module ViewComponent::ComponentLocalConfig
    • module ViewComponent::Configurable
    • module ViewComponent::InlineTemplate
    • module ViewComponent::Instrumentation
    • module ViewComponent::PreviewActions
    • module ViewComponent::RequestDetails
    • module ViewComponent::Slotable
    • module ViewComponent::SystemTestHelpers
    • module ViewComponent::TestHelpers
    • module ViewComponent::Translatable
    • module ViewComponent::UseHelpers
    • module ViewComponent::VERSION
    • module ViewComponent::WithContentHelper
  • Classes

    • class ActionView::OutputBuffer
    • class ViewComponent::AlreadyDefinedPolymorphicSlotSetterError
    • class ViewComponent::Base
    • class ViewComponent::BaseError
    • class ViewComponent::Collection
    • class ViewComponent::Compiler
    • class ViewComponent::ComponentLocalConfig::Configuration
    • class ViewComponent::Config
    • class ViewComponent::ContentAlreadySetForPolymorphicSlotError
    • class ViewComponent::ContentSlotNameError
    • class ViewComponent::ControllerCalledBeforeRenderError
    • class ViewComponent::DuplicateContentError
    • class ViewComponent::DuplicateSlotContentError
    • class ViewComponent::EmptyOrInvalidInitializerError
    • class ViewComponent::Engine
    • class ViewComponent::HelpersCalledBeforeRenderError
    • class ViewComponent::InvalidCollectionArgumentError
    • class ViewComponent::InvalidSlotDefinitionError
    • class ViewComponent::InvalidSlotNameError
    • class ViewComponent::MissingCollectionArgumentError
    • class ViewComponent::MissingPreviewTemplateError
    • class ViewComponent::MissingTemplateError
    • class ViewComponent::MultipleInlineTemplatesError
    • class ViewComponent::NilWithContentError
    • class ViewComponent::Preview
    • class ViewComponent::RedefinedSlotError
    • class ViewComponent::ReservedParameterError
    • class ViewComponent::ReservedPluralSlotNameError
    • class ViewComponent::ReservedSingularSlotNameError
    • class ViewComponent::Slot
    • class ViewComponent::SlotPredicateNameError
    • class ViewComponent::SystemTestCase
    • class ViewComponent::SystemTestControllerNefariousPathError
    • class ViewComponent::Template
    • class ViewComponent::Template::File
    • class ViewComponent::Template::Inline
    • class ViewComponent::Template::InlineCall
    • class ViewComponent::TemplateError
    • class ViewComponent::TestCase
    • class ViewComponent::Translatable::I18nBackend
    • class ViewComponent::TranslateCalledBeforeRenderError
    • class ViewComponent::UncountableSlotNameError
    • class ViewComponentsController
    • class ViewComponentsSystemTestController
    Overview
    H
    Home
    R
    Reference
    T
    Types
    C
    Changelogs
  • Documentation
    • README
    • Changelog
  • More
    • Versions
    • Source
    • Playground
    • Stats
    • Metadata
    • Wiki
    • Announcements
    Community
    • Articles
    • Tutorials
    • Videos
    • Community
  1. Gems
  2. view_component
  3. 4.0.0.alpha4

view_component

A framework for building reusable, testable & encapsulated view components in Ruby on Rails.

Types
Docs
Guides
Zeitwerk
Namespace
Optimized

Version

4.0.0.alpha4

Authors

ViewComponent Team

Dependencies

activesupport, concurrent-ruby, allocation_stats, appraisal, benchmark-ips, better_html, bundler, capybara, cuprite, erb_lint, haml, jbuilder, m, method_source, minitest, puma, rake, redis, rspec-rails, rubocop-md, selenium-webdriver, simplecov-console, simplecov, slim, sprockets-rails, standard, turbo-rails, warning, yard-activesupport-concern, yard, propshaft

Quick Start

bundle add view_component

Getting Started

Learn more about the View_component gem.

Installation

Learn more about how to install and configure the gem

Documentation

Learn more about the details

Guides

Learn more about the gem in the written guides

Reference

Learn more about the classes and modules

Documentation

docs/CHANGELOG.md

Read about "Changelog" in view_component

Read more

Playground

Test, play and inspect the gem for yourself

irb(main):001:0>

            

Playground

Run a Ruby playground with the view_component gem pre-installed

Play

Top-Level Modules

  • ActionView
  • ViewComponent

Top-Level Classes

  • ViewComponentsController
  • ViewComponentsSystemTestController
Home
Gems
Docs
Contribute
Monitoring
Twitter GitHub Mastodon

© 2025 gem.sh - Beautiful documentation for any Ruby gem