Class: Irelia::Navigation::Component::NavigationLink

Inherits:
Button::Component
  • Object
show all
Defined in:
app/components/irelia/navigation/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ NavigationLink

Returns a new instance of NavigationLink.



16
17
18
19
20
21
# File 'app/components/irelia/navigation/component.rb', line 16

def initialize(**options)
  options[:size] = :sm
  options[:color] = options[:active] ? :primary : :secondary

  super(**options)
end