module TailwindForm::Inputs::Base

Public Instance Methods

tailwind_field(field_name) click to toggle source
# File lib/tailwind_form/inputs/base.rb, line 9
def tailwind_field(field_name)
  define_method "#{field_name}_with_tailwind" do |name, options = {}|
    @template.content_tag :div, class: 'form__inputGroup' do
      send(field_name, name, options)
    end
  end
end