Method: TextButton::Component#initialize

Defined in:
app/components/lookbook/text_button/component.rb

#initialize(id: nil, icon: nil, tooltip: nil, disabled: false, size: :md, href: nil, **html_attrs) ⇒ Component

Returns a new instance of Component.



14
15
16
17
18
19
20
21
22
# File 'app/components/lookbook/text_button/component.rb', line 14

def initialize(id: nil, icon: nil, tooltip: nil, disabled: false, size: :md, href: nil, **html_attrs)
  @id = id
  @icon = icon
  @tooltip = tooltip
  @disabled = disabled
  @size = size
  @href = href
  super(**html_attrs)
end