Class: Button::GroupComponent

Inherits:
SparkComponents::Component
  • Object
show all
Defined in:
app/components/spark/button/group_component.rb

Constant Summary collapse

COLORS =
Button::BaseComponent::COLORS
SIZES =
Button::BaseComponent::SIZES

Instance Method Summary collapse

Instance Method Details

#renderObject



15
16
17
18
19
20
21
22
23
# File 'app/components/spark/button/group_component.rb', line 15

def render
  unless buttons.empty?
    (:div, tag_attrs) do
      buttons.each { |button|
        concat button
      }
    end
  end
end