Class: SidebarItemComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- SidebarItemComponent
- Defined in:
- app/components/sidebar_item_component.rb
Instance Method Summary collapse
-
#initialize(path:, label:, icon: Icons::HomeComponent) ⇒ SidebarItemComponent
constructor
A new instance of SidebarItemComponent.
Constructor Details
#initialize(path:, label:, icon: Icons::HomeComponent) ⇒ SidebarItemComponent
Returns a new instance of SidebarItemComponent.
4 5 6 7 8 |
# File 'app/components/sidebar_item_component.rb', line 4 def initialize(path:, label:, icon: Icons::HomeComponent) @path = path @icon = icon @label = label end |