Class: Shadcn::CarouselContentComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::CarouselContentComponent
- Defined in:
- app/components/shadcn/carousel_component.rb
Overview
Container for carousel items
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(orientation: :horizontal, **options) ⇒ CarouselContentComponent
constructor
A new instance of CarouselContentComponent.
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(orientation: :horizontal, **options) ⇒ CarouselContentComponent
Returns a new instance of CarouselContentComponent.
99 100 101 102 |
# File 'app/components/shadcn/carousel_component.rb', line 99 def initialize(orientation: :horizontal, **) super(**) @orientation = orientation.to_sym end |
Instance Method Details
#call ⇒ Object
104 105 106 |
# File 'app/components/shadcn/carousel_component.rb', line 104 def call content_tag(:div, wrapper_content, wrapper_attributes) end |