Module: IgnitionKit::Helpers

Defined in:
app/lib/ignition_kit/helpers.rb

Instance Method Summary collapse

Instance Method Details

#button(*args, **kw_args, &block) ⇒ Object



3
4
5
# File 'app/lib/ignition_kit/helpers.rb', line 3

def button(*args, **kw_args, &block)
  Button.new(*args, **kw_args, &block).render
end

#destructive_button(*args, **kw_args, &block) ⇒ Object



11
12
13
# File 'app/lib/ignition_kit/helpers.rb', line 11

def destructive_button(*args, **kw_args, &block)
  Button.new(*args, **kw_args, variant: :destructive, &block).render
end

#ghost_button(*args, **kw_args, &block) ⇒ Object



15
16
17
# File 'app/lib/ignition_kit/helpers.rb', line 15

def ghost_button(*args, **kw_args, &block)
  Button.new(*args, **kw_args, variant: :ghost, &block).render
end

#primary_button(*args, **kw_args, &block) ⇒ Object



7
8
9
# File 'app/lib/ignition_kit/helpers.rb', line 7

def primary_button(*args, **kw_args, &block)
  Button.new(*args, **kw_args, variant: :primary, &block).render
end