Sha256: 576f7b7ee65f98906f1ea1d220c3bee0e4ecc9911e978d5f8494c6d35061c813
Contents?: true
Size: 712 Bytes
Versions: 7
Compression:
Stored size: 712 Bytes
Contents
module Coco module App module Elements class ButtonGroup < Coco::Component include Concerns::ActsAsButtonGroup include Concerns::AcceptsOptions accepts_option :size, default: :default, private: true accepts_option :theme, default: :primary, private: true accepts_option :collapsible, from: [true, false, nil] def button_kwargs(kwargs, type = nil) args = { theme: get_option_value(:theme), size: get_option_value(:size), **kwargs } if get_option_value(:collapsible) == false args[:collapsible] = false end args end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems