Module: NitroKit::SwitchHelper

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

Instance Method Summary collapse

Instance Method Details

#nk_switch(name, checked: false, disabled: false, size: :base, description: nil, **attrs, &block) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'app/helpers/nitro_kit/switch_helper.rb', line 3

def nk_switch(
  name,
  checked: false,
  disabled: false,
  size: :base,
  description: nil,
  **attrs,
  &block
)
  render(NitroKit::Switch.new(name, checked:, disabled:, size:, description:, **attrs), &block)
end