Class: Spotlight::HeaderNavigationLinkComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/spotlight/header_navigation_link_component.rb

Overview

This draws a navigation link in the header. A downstream application may switch out the implementation to use different styles, etc.

Instance Method Summary collapse

Constructor Details

#initialize(path:, active:, label:) ⇒ HeaderNavigationLinkComponent

Returns a new instance of HeaderNavigationLinkComponent.



7
8
9
10
11
12
# File 'app/components/spotlight/header_navigation_link_component.rb', line 7

def initialize(path:, active:, label:)
  @path = path
  @active = active
  @label = label
  super
end