Class: UI::CarouselItemComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::CarouselItemComponent
- Defined in:
- app/view_components/ui/carousel_item_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: nil, **attributes) ⇒ CarouselItemComponent
constructor
A new instance of CarouselItemComponent.
Constructor Details
#initialize(classes: nil, **attributes) ⇒ CarouselItemComponent
Returns a new instance of CarouselItemComponent.
4 5 6 7 |
# File 'app/view_components/ui/carousel_item_component.rb', line 4 def initialize(classes: nil, **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
9 10 11 12 13 |
# File 'app/view_components/ui/carousel_item_component.rb', line 9 def call extend UI::CarouselItemBehavior content_tag :div, content, **carousel_item_html_attributes end |