sajad torkamani

Let’s suppose you want to edit the string inputs. Create a file at app/inputs/string_input.rb:

# frozen_string_literal: true

class StringInput < SimpleForm::Inputs::StringInput
  def input_html_classes
    super.push('block w-full')
  end
end

You can view list of SimpleForm’s default inputs here.

Leave a comment

Your email address will not be published. Required fields are marked *