Class: Irelia::Navigation::Component::NavigationLink
- Inherits:
-
Button::Component
- Object
- Button::Component
- Irelia::Navigation::Component::NavigationLink
- Defined in:
- app/components/irelia/navigation/component.rb
Instance Method Summary collapse
-
#initialize(**options) ⇒ NavigationLink
constructor
A new instance of NavigationLink.
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(**) [:size] = :sm [:color] = [:active] ? :primary : :secondary super(**) end |