Module: StimulusPlumbers::Helpers::ButtonHelper
- Included in:
- StimulusPlumbers::Helpers
- Defined in:
- lib/stimulus_plumbers/helpers/button_helper.rb
Instance Method Summary collapse
- #sp_button(content = nil, url: nil, external: false, variant: :primary, size: :md, **html_options, &block) ⇒ Object
- #sp_button_group(alignment: :left, direction: :row, **html_options, &block) ⇒ Object
Instance Method Details
#sp_button(content = nil, url: nil, external: false, variant: :primary, size: :md, **html_options, &block) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/stimulus_plumbers/helpers/button_helper.rb', line 6 def (content = nil, url: nil, external: false, variant: :primary, size: :md, **, &block) .( content, url: url, external: external, variant: variant, size: size, **, &block ) end |
#sp_button_group(alignment: :left, direction: :row, **html_options, &block) ⇒ Object
14 15 16 |
# File 'lib/stimulus_plumbers/helpers/button_helper.rb', line 14 def (alignment: :left, direction: :row, **, &block) .group(alignment: alignment, direction: direction, **, &block) end |