Module: StimulusPlumbers::Helpers::ButtonHelper

Included in:
StimulusPlumbers::Helpers
Defined in:
lib/stimulus_plumbers/helpers/button_helper.rb

Instance Method Summary collapse

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 sp_button(content = nil, url: nil, external: false, variant: :primary, size: :md, **html_options, &block)
  button_renderer.button(
    content,
    url: url, external: external, variant: variant, size: size, **html_options,
    &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 sp_button_group(alignment: :left, direction: :row, **html_options, &block)
  button_renderer.group(alignment: alignment, direction: direction, **html_options, &block)
end