Class: UI::CarouselContentComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/view_components/ui/carousel_content_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(classes: nil, **attributes) ⇒ CarouselContentComponent

Returns a new instance of CarouselContentComponent.



4
5
6
7
# File 'app/view_components/ui/carousel_content_component.rb', line 4

def initialize(classes: nil, **attributes)
  @classes = classes
  @attributes = attributes
end

Instance Method Details

#callObject



9
10
11
12
13
14
15
# File 'app/view_components/ui/carousel_content_component.rb', line 9

def call
  extend UI::CarouselContentBehavior

   :div, **carousel_content_html_attributes do
     :div, content, **carousel_content_container_html_attributes
  end
end