Sha256: 248db02e20ef88cfbcb1bc4f6eca0c03ee0b64a5c4ef41ca56d96c5a23120ef0

Contents?: true

Size: 453 Bytes

Versions: 10

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class SubmitButtonForm < ApplicationForm
  form do |my_form|
    my_form.fields_for(:name_form) do |builder|
      MultiTextFieldForm.new(builder)
    end

    my_form.text_field(
      name: :green,
      label: "I'm green",
      color: :success
    )

    my_form.submit(name: :submit, label: "Submit", scheme: :primary, mr: 3) do |c|
      c.with_leading_visual_icon(icon: :"check-circle")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
primer_view_components-0.0.112 app/forms/submit_button_form.rb
primer_view_components-0.0.111 app/forms/submit_button_form.rb
primer_view_components-0.0.110 app/forms/submit_button_form.rb
primer_view_components-0.0.109 app/forms/submit_button_form.rb
primer_view_components-0.0.108 app/forms/submit_button_form.rb
primer_view_components-0.0.107 app/forms/submit_button_form.rb
primer_view_components-0.0.106 app/forms/submit_button_form.rb
primer_view_components-0.0.105 app/forms/submit_button_form.rb
primer_view_components-0.0.104 app/forms/submit_button_form.rb
primer_view_components-0.0.103 app/forms/submit_button_form.rb