Module: Components::SwitchHelper

Defined in:
app/helpers/components/switch_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_switch(text, id:, name:, state: "unchecked", **options) ⇒ Object



2
3
4
# File 'app/helpers/components/switch_helper.rb', line 2

def render_switch(text, id:, name:, state: "unchecked", **options)
  render "components/ui/switch", text:, id:, name:, state:, options:
end