Class: ButtonGroup::Component

Inherits:
Lookbook::BaseComponent
  • Object
show all
Defined in:
app/components/lookbook/button_group/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(size: :md, **html_attrs) ⇒ Component

Returns a new instance of Component.



12
13
14
15
# File 'app/components/lookbook/button_group/component.rb', line 12

def initialize(size: :md, **html_attrs)
  @size = size
  super(**html_attrs)
end