module Primer::Forms::Dsl::InputMethods

def button(**options, &block)

Parameters:
  • block (Proc) -- A block that will be yielded a reference to the input object so it can be customized.
  • options (Hash) -- The options accepted by the button input (see forms docs).
def button(**options, &block)
  options = decorate_options(**options)
  add_input ButtonInput.new(builder: builder, form: form, **options, &block)
end