Class: StimulusPlumbers::Components::Button::Group
- Inherits:
-
Plumber::Base
- Object
- Plumber::Base
- StimulusPlumbers::Components::Button::Group
- Defined in:
- lib/stimulus_plumbers/components/button/group.rb
Constant Summary
Constants included from Plumber::HtmlOptions
Plumber::HtmlOptions::STIMULUS_SPACEJOIN_KEYS
Instance Attribute Summary
Attributes inherited from Plumber::Base
Instance Method Summary collapse
Methods inherited from Plumber::Base
Methods included from Plumber::HtmlOptions
#merge_data_options, #merge_html_options, #merge_string_option, #normalize_part
Constructor Details
This class inherits a constructor from StimulusPlumbers::Plumber::Base
Instance Method Details
#render(alignment: :left, direction: :row, **kwargs, &block) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/stimulus_plumbers/components/button/group.rb', line 7 def render(alignment: :left, direction: :row, **kwargs, &block) = ( { classes: theme.resolve(:button_group, alignment: alignment, direction: direction).fetch(:classes, "") }, kwargs ) template.content_tag(:div, template.capture(&block), **) end |