repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inline_sidecar_conflict_component.rb
test/sandbox/app/components/inline_sidecar_conflict_component.rb
# frozen_string_literal: true class InlineSidecarConflictComponent < ViewComponent::Base def call "Hi!" end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/level2_component.rb
test/sandbox/app/components/level2_component.rb
# frozen_string_literal: true class Level2Component < Level1Component end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/template_and_sidecar_directory_template_component.rb
test/sandbox/app/components/template_and_sidecar_directory_template_component.rb
# frozen_string_literal: true class TemplateAndSidecarDirectoryTemplateComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/message_component.rb
test/sandbox/app/components/message_component.rb
# frozen_string_literal: true class MessageComponent < ViewComponent::Base def initialize(message:) @message = message end def call html_escape(@message) end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/variant_ivar_component.rb
test/sandbox/app/components/variant_ivar_component.rb
# frozen_string_literal: true class VariantIvarComponent < ViewComponent::Base def initialize(variant:) @variant = variant end def call html_escape(@variant.to_s) end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/form_for_component.rb
test/sandbox/app/components/form_for_component.rb
# frozen_string_literal: true class FormForComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/label_component.rb
test/sandbox/app/components/label_component.rb
# frozen_string_literal: true class LabelComponent < ViewComponent::Base def initialize(form:) @form = form end private attr_reader :form end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/partial_component.rb
test/sandbox/app/components/partial_component.rb
# frozen_string_literal: true class PartialComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/relative_translation_partial_block_component.rb
test/sandbox/app/components/relative_translation_partial_block_component.rb
# frozen_string_literal: true class RelativeTranslationPartialBlockComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/turbo_stream_component.rb
test/sandbox/app/components/turbo_stream_component.rb
# frozen_string_literal: true class TurboStreamComponent < ViewComponent::Base include Turbo::StreamsHelper end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/instrumentation_component.rb
test/sandbox/app/components/instrumentation_component.rb
# frozen_string_literal: true class InstrumentationComponent < ViewComponent::Base include ViewComponent::Instrumentation end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inherited_from_uncompilable_component.rb
test/sandbox/app/components/inherited_from_uncompilable_component.rb
# frozen_string_literal: true class InheritedFromUncompilableComponent < UncompilableComponent def call "<div>hello world</div>".html_safe end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/partial_haml_component.rb
test/sandbox/app/components/partial_haml_component.rb
# frozen_string_literal: true class PartialHamlComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/herb_component.rb
test/sandbox/app/components/herb_component.rb
# frozen_string_literal: true class HerbComponent < ViewComponent::Base def initialize(message:) @message = message end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/default_inline_and_variant_template_component.rb
test/sandbox/app/components/default_inline_and_variant_template_component.rb
# frozen_string_literal: true class DefaultInlineAndVariantTemplateComponent < ViewComponent::Base def call end def call_phone end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/invalid_parameters_component.rb
test/sandbox/app/components/invalid_parameters_component.rb
# frozen_string_literal: true class InvalidParametersComponent < ViewComponent::Base def initialize(content) @content = content end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/table_contents_component.rb
test/sandbox/app/components/table_contents_component.rb
# frozen_string_literal: true class TableContentsComponent < ViewComponent::Base def call "<td>td contents</td>".html_safe end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/editorb_component.rb
test/sandbox/app/components/editorb_component.rb
# frozen_string_literal: true class EditorbComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/render_check_component.rb
test/sandbox/app/components/render_check_component.rb
# frozen_string_literal: true class RenderCheckComponent < ViewComponent::Base def render? !view_context.cookies[:hide] end def call "Rendered".html_safe end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/mailer_component.rb
test/sandbox/app/components/mailer_component.rb
# frozen_string_literal: true class MailerComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/variant_template_and_inline_variant_collision_component.rb
test/sandbox/app/components/variant_template_and_inline_variant_collision_component.rb
# frozen_string_literal: true class VariantTemplateAndInlineVariantCollisionComponent < ViewComponent::Base def call_mini__watch end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inherited_sidecar_component.rb
test/sandbox/app/components/inherited_sidecar_component.rb
# frozen_string_literal: true class InheritedSidecarComponent < MyComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/nested_collection_wrapper_component.rb
test/sandbox/app/components/nested_collection_wrapper_component.rb
# frozen_string_literal: true class NestedCollectionWrapperComponent < ViewComponent::Base def initialize(items:) @items = items end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inline_variant_component.rb
test/sandbox/app/components/inline_variant_component.rb
# frozen_string_literal: true class InlineVariantComponent < ViewComponent::Base def call end def call_inline_variant text_field_tag :inline_variant end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/url_component.rb
test/sandbox/app/components/url_component.rb
# frozen_string_literal: true class UrlComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/capturing_component.rb
test/sandbox/app/components/capturing_component.rb
# frozen_string_literal: true class CapturingComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/title_wrapper_component.rb
test/sandbox/app/components/title_wrapper_component.rb
# frozen_string_literal: true class TitleWrapperComponent < ViewComponent::Base def initialize(title:) @title = title end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/url_for_mailer_component.rb
test/sandbox/app/components/url_for_mailer_component.rb
# frozen_string_literal: true class UrlForMailerComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/haml_component.rb
test/sandbox/app/components/haml_component.rb
# frozen_string_literal: true class HamlComponent < ViewComponent::Base def initialize(message:) @message = message end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/helpers_proxy_component.rb
test/sandbox/app/components/helpers_proxy_component.rb
# frozen_string_literal: true class HelpersProxyComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/form_with_component.rb
test/sandbox/app/components/form_with_component.rb
# frozen_string_literal: true class FormWithComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inherited_slots_component.rb
test/sandbox/app/components/inherited_slots_component.rb
# frozen_string_literal: true class InheritedSlotsComponent < SlotsComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/translatable_component.rb
test/sandbox/app/components/translatable_component.rb
# frozen_string_literal: true class TranslatableComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/item_component.rb
test/sandbox/app/components/item_component.rb
require "dry-initializer" class ItemComponent < ViewComponent::Base extend Dry::Initializer option :item erb_template <<~ERB <%= item.name %> ERB end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/last_item_component.rb
test/sandbox/app/components/last_item_component.rb
class LastItemComponent < ViewComponent::Base renders_many :items, "BreadcrumbItemComponent" def call tag.ul do items.last.active = true safe_join(items) end end class BreadcrumbItemComponent < ViewComponent::Base attr_writer :active def initialize(item) @item = item end...
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/slotted_content_child_component.rb
test/sandbox/app/components/slotted_content_child_component.rb
# frozen_string_literal: true class SlottedContentChildComponent < ViewComponent::Base def call content end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/validations_component.rb
test/sandbox/app/components/validations_component.rb
# frozen_string_literal: true class ValidationsComponent < ViewComponent::Base include ActiveModel::Validations validates :content, presence: true def before_render validate! end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/partial_with_yield_and_method_call_component.rb
test/sandbox/app/components/partial_with_yield_and_method_call_component.rb
class PartialWithYieldAndMethodCallComponent < ViewComponent::Base def world "world" end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inline_level3_component.rb
test/sandbox/app/components/inline_level3_component.rb
# frozen_string_literal: true class InlineLevel3Component < InlineLevel2Component def call content_tag(:div, class: "level3-component base") do render_parent_to_string end end def call_variant content_tag(:div, class: "level3-component variant") do render_parent_to_string end end e...
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/lambda_slot_passthrough_component.rb
test/sandbox/app/components/lambda_slot_passthrough_component.rb
# frozen_string_literal: true class LambdaSlotPassthroughComponent < ViewComponent::Base renders_one :lambda_slot, ->(&block) { self.class.new(&block) } end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/conditional_content_with_arg_component.rb
test/sandbox/app/components/conditional_content_with_arg_component.rb
# frozen_string_literal: true class ConditionalContentWithArgComponent < ViewComponent::Base def initialize(description: nil) @description = description end def call description&.html_safe end private def description @description || content end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/exception_in_slim_template_component.rb
test/sandbox/app/components/exception_in_slim_template_component.rb
# frozen_string_literal: true class ExceptionInSlimTemplateComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/post_component.rb
test/sandbox/app/components/post_component.rb
# frozen_string_literal: true class PostComponent < ViewComponent::Base def initialize(post) @post = post end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/jbuilder_component.rb
test/sandbox/app/components/jbuilder_component.rb
# frozen_string_literal: true class JbuilderComponent < ViewComponent::Base def initialize(message:) @message = message end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/custom_test_controller_component.rb
test/sandbox/app/components/custom_test_controller_component.rb
# frozen_string_literal: true class CustomTestControllerComponent < ViewComponent::Base def call html_escape(helpers.foo) end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/default_form_builder_component.rb
test/sandbox/app/components/default_form_builder_component.rb
# frozen_string_literal: true class DefaultFormBuilderComponent < ViewComponent::Base; end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/path_container_component.rb
test/sandbox/app/components/path_container_component.rb
# frozen_string_literal: true class PathContainerComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inline_integer_component.rb
test/sandbox/app/components/inline_integer_component.rb
class InlineIntegerComponent < ViewComponent::Base def call 1 end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/child_component.rb
test/sandbox/app/components/child_component.rb
# frozen_string_literal: true class ChildComponent < ParentComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/lambda_slot_component.rb
test/sandbox/app/components/lambda_slot_component.rb
# frozen_string_literal: true class LambdaSlotComponent < ViewComponent::Base renders_one :header, ->(classes:, &block) do content_tag :h1, class: classes, &block end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/polymorphic_wrapper_component.rb
test/sandbox/app/components/polymorphic_wrapper_component.rb
# frozen_string_literal: true class PolymorphicWrapperComponent < ViewComponent::Base def initialize @sections = [] end def section s = PolymorphicContentSlotComponent.new s.with_content("the truth is out there") s.with_leading_visual_icon("wow") @sections << s end def call content...
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inline_level2_component.rb
test/sandbox/app/components/inline_level2_component.rb
# frozen_string_literal: true class InlineLevel2Component < InlineLevel1Component def call "<div class='level2-component base'>#{render_parent_to_string}</div>".html_safe end def call_variant "<div class='level2-component variant'>#{render_parent_to_string}</div>".html_safe end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/relative_translation_partial_parent_component.rb
test/sandbox/app/components/relative_translation_partial_parent_component.rb
# frozen_string_literal: true class RelativeTranslationPartialParentComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/level1_component.rb
test/sandbox/app/components/level1_component.rb
# frozen_string_literal: true class Level1Component < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/turbo_stream_format_component.rb
test/sandbox/app/components/turbo_stream_format_component.rb
# frozen_string_literal: true class TurboStreamFormatComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/product_component.rb
test/sandbox/app/components/product_component.rb
# frozen_string_literal: true class ProductComponent < ViewComponent::Base def initialize(product:, notice:, product_counter: nil, product_iteration: nil) @product = product @notice = notice @counter = product_counter @iteration = product_iteration end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/initializer_translations_component.rb
test/sandbox/app/components/initializer_translations_component.rb
# frozen_string_literal: true class InitializerTranslationsComponent < ViewComponent::Base def initialize @title = t(".title") end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/controller_inline_component.rb
test/sandbox/app/components/controller_inline_component.rb
# frozen_string_literal: true class ControllerInlineComponent < ViewComponent::Base def initialize(message:) @message = message end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/missing_collection_parameter_with_active_model_component.rb
test/sandbox/app/components/missing_collection_parameter_with_active_model_component.rb
# frozen_string_literal: true class MissingCollectionParameterWithActiveModelComponent < ViewComponent::Base include ActiveModel::Model include ActiveModel::Attributes with_collection_parameter :name def call end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/current_page_component.rb
test/sandbox/app/components/current_page_component.rb
# frozen_string_literal: true class CurrentPageComponent < ViewComponent::Base def text "#{current_page?("/slots") ? "Inside" : "Outside"} /slots (#{request.method} #{request.path})" end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inline_level1_component.rb
test/sandbox/app/components/inline_level1_component.rb
# frozen_string_literal: true class InlineLevel1Component < ViewComponent::Base def call content_tag(:div, class: "level1-component") do "Level 1 component" end end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/content_eval_component.rb
test/sandbox/app/components/content_eval_component.rb
# frozen_string_literal: true class ContentEvalComponent < ViewComponent::Base def call content # evaluate content content_tag :h1, "content!" end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inline_child_component.rb
test/sandbox/app/components/inline_child_component.rb
# frozen_string_literal: true class InlineChildComponent < InlineComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/super_component.rb
test/sandbox/app/components/super_component.rb
# frozen_string_literal: true class SuperComponent < SuperBaseComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/css_sidecar_file_component.rb
test/sandbox/app/components/css_sidecar_file_component.rb
# frozen_string_literal: true class CssSidecarFileComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/haml_html_formatted_slot_component.rb
test/sandbox/app/components/haml_html_formatted_slot_component.rb
# frozen_string_literal: true class HamlHtmlFormattedSlotComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/slots_block_component.rb
test/sandbox/app/components/slots_block_component.rb
# frozen_string_literal: true class SlotsBlockComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/display_inline_component.rb
test/sandbox/app/components/display_inline_component.rb
# frozen_string_literal: true class DisplayInlineComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/link_to_tag_component.rb
test/sandbox/app/components/link_to_tag_component.rb
# frozen_string_literal: true class LinkToTagComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/missing_collection_parameter_name_component.rb
test/sandbox/app/components/missing_collection_parameter_name_component.rb
# frozen_string_literal: true class MissingCollectionParameterNameComponent < ViewComponent::Base with_collection_parameter :foo def initialize(bar:) end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/variants_component.rb
test/sandbox/app/components/variants_component.rb
# frozen_string_literal: true class VariantsComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/slots_component.rb
test/sandbox/app/components/slots_component.rb
# frozen_string_literal: true class SlotsComponent < ViewComponent::Base renders_one :title renders_one :subtitle renders_one :footer, ->(classes: "", &block) do content_tag :footer, class: "footer #{classes}" do block.call if block end end renders_many :posts, PostComponent renders_many :t...
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/content_for_component.rb
test/sandbox/app/components/content_for_component.rb
# frozen_string_literal: true class ContentForComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/request_url_component.rb
test/sandbox/app/components/request_url_component.rb
# frozen_string_literal: true class RequestUrlComponent < ViewComponent::Base def call content_tag(:span, request.path, class: "path") + content_tag(:span, request.fullpath, class: "fullpath") end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/title_component.rb
test/sandbox/app/components/title_component.rb
# frozen_string_literal: true class TitleComponent < ViewComponent::Base renders_one :body end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/no_format_component.rb
test/sandbox/app/components/no_format_component.rb
# frozen_string_literal: true class NoFormatComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/conditional_render_component.rb
test/sandbox/app/components/conditional_render_component.rb
# frozen_string_literal: true class ConditionalRenderComponent < ViewComponent::Base def initialize(should_render:) @should_render = should_render end def render? @should_render end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/content_predicate_component.rb
test/sandbox/app/components/content_predicate_component.rb
# frozen_string_literal: true class ContentPredicateComponent < ViewComponent::Base def call if content? content else "Default".html_safe end end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/unsafe_component.rb
test/sandbox/app/components/unsafe_component.rb
# frozen_string_literal: true class UnsafeComponent < ViewComponent::Base def call user_input = "<script>alert('hello!')</script>" "<div>hello #{user_input}</div>" end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/partial_slot_helper_component.rb
test/sandbox/app/components/partial_slot_helper_component.rb
# frozen_string_literal: true class PartialSlotHelperComponent < ViewComponent::Base renders_one :header, PartialHelperComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/rails_config_component.rb
test/sandbox/app/components/rails_config_component.rb
# frozen_string_literal: true class RailsConfigComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/missing_initializer_component.rb
test/sandbox/app/components/missing_initializer_component.rb
# frozen_string_literal: true class MissingInitializerComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/slotable_default_instance_component.rb
test/sandbox/app/components/slotable_default_instance_component.rb
class SlotableDefaultInstanceComponent < ViewComponent::Base erb_template <<~ERB <h1><%= header %></h1> ERB renders_one :header def default_header MyComponent.new end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/inline_inherited_component.rb
test/sandbox/app/components/inline_inherited_component.rb
# frozen_string_literal: true class InlineInheritedComponent < InlineComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/unsuffixed.rb
test/sandbox/app/components/unsuffixed.rb
# frozen_string_literal: true class Unsuffixed < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/conditional_content_component.rb
test/sandbox/app/components/conditional_content_component.rb
# frozen_string_literal: true class ConditionalContentComponent < ViewComponent::Base def render? content.present? end def call content end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/localised_component.rb
test/sandbox/app/components/localised_component.rb
# frozen_string_literal: true class LocalisedComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/exception_in_template_component.rb
test/sandbox/app/components/exception_in_template_component.rb
# frozen_string_literal: true class ExceptionInTemplateComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/slots_before_render_component.rb
test/sandbox/app/components/slots_before_render_component.rb
# frozen_string_literal: true class SlotsBeforeRenderComponent < ViewComponent::Base renders_one :title, "MyTitleComponent" renders_many :greetings, "MyGreetingComponent" class MyTitleComponent < ViewComponent::Base attr_reader :prefix def before_render @prefix = "Testing" end end class ...
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/invalid_named_parameters_component.rb
test/sandbox/app/components/invalid_named_parameters_component.rb
# frozen_string_literal: true class InvalidNamedParametersComponent < ViewComponent::Base def initialize(content:) @content = content end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/content_tag_component.rb
test/sandbox/app/components/content_tag_component.rb
# frozen_string_literal: true class ContentTagComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/translatable_subclass_component.rb
test/sandbox/app/components/translatable_subclass_component.rb
# frozen_string_literal: true class TranslatableSubclassComponent < TranslatableComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/slots_delegate_component.rb
test/sandbox/app/components/slots_delegate_component.rb
# frozen_string_literal: true class SlotsDelegateComponent < ViewComponent::Base renders_many :items, SlotsComponent::MyHighlightComponent end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/translations_component.rb
test/sandbox/app/components/translations_component.rb
# frozen_string_literal: true class TranslationsComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/form_partial_component.rb
test/sandbox/app/components/form_partial_component.rb
# frozen_string_literal: true class FormPartialComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/only_variant_component.rb
test/sandbox/app/components/only_variant_component.rb
# frozen_string_literal: true class OnlyVariantComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/request_component.rb
test/sandbox/app/components/request_component.rb
# frozen_string_literal: true class RequestComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/incompatible_form_component.rb
test/sandbox/app/components/incompatible_form_component.rb
# frozen_string_literal: true class IncompatibleFormComponent < ViewComponent::Base end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/slim_component.rb
test/sandbox/app/components/slim_component.rb
# frozen_string_literal: true class SlimComponent < ViewComponent::Base def initialize(message:) @message = message end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false
ViewComponent/view_component
https://github.com/ViewComponent/view_component/blob/48da443d2b0df16a981b7ec0cc4c6cf0a51114fb/test/sandbox/app/components/initialize_super_component.rb
test/sandbox/app/components/initialize_super_component.rb
# frozen_string_literal: true class InitializeSuperComponent < ViewComponent::Base def initialize super end end
ruby
MIT
48da443d2b0df16a981b7ec0cc4c6cf0a51114fb
2026-01-04T15:50:14.216895Z
false