Module: NitroKit::SwitchHelper

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

Instance Method Summary collapse

Instance Method Details

#nk_switch(**attrs, &block) ⇒ Object



5
6
7
# File 'app/helpers/nitro_kit/switch_helper.rb', line 5

def nk_switch(**attrs, &block)
  render(Switch.from_template(**attrs), &block)
end