Class: UI::ItemGroupComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::ItemGroupComponent
- Includes:
- ItemGroupBehavior
- Defined in:
- app/view_components/ui/item_group_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ ItemGroupComponent
constructor
A new instance of ItemGroupComponent.
Methods included from ItemGroupBehavior
#item_group_classes, #item_group_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ ItemGroupComponent
Returns a new instance of ItemGroupComponent.
6 7 8 9 |
# File 'app/view_components/ui/item_group_component.rb', line 6 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'app/view_components/ui/item_group_component.rb', line 11 def call content_tag :div, content, **item_group_html_attributes end |