Class: LightningUiKit::LinkComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/lightning_ui_kit/link_component.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#merge_classes

Methods included from HeroiconHelper

#heroicon

Constructor Details

#initialize(title:, url:) ⇒ LinkComponent

Returns a new instance of LinkComponent.



4
5
6
7
# File 'app/components/lightning_ui_kit/link_component.rb', line 4

def initialize(title:, url:)
  @title = title
  @url = url
end