module Ariadne::Forms::Dsl::InputMethods

def text_field(**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 text field input (see forms docs).
def text_field(**options, &block)
  options = decorate_options(**options)
  add_input(TextFieldInput.new(builder: builder, form: form, **options, &block))
end