Class: SidebarItemComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/app/components/sidebar_item_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(path:, label:, icon: Icons::HomeComponent) ⇒ SidebarItemComponent

Returns a new instance of SidebarItemComponent.



4
5
6
7
8
# File 'lib/app/components/sidebar_item_component.rb', line 4

def initialize(path:, label:, icon: Icons::HomeComponent)
  @path = path
  @icon = icon
  @label = label
end