Method: Coco::ButtonGroup#button_kwargs
- Defined in:
- app/components/coco/buttons/button_group/button_group.rb
#button_kwargs(kwargs, type = nil) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/components/coco/buttons/button_group/button_group.rb', line 21 def (kwargs, type = nil) args = { theme: get_option_value(:theme), size: get_option_value(:size), **kwargs } if component_args.key?(:resize) args[:resize] = component_args[:resize] end if get_option_value(:collapsible) == false args[:collapsible] = false elsif get_option_value(:collapsible) == true args[:static] = false end args end |