Sha256: 1da7ce1a52aa33b212e9a9935d2a7ff3b4b7c07a59237603f5afecbaa65d0450

Contents?: true

Size: 539 Bytes

Versions: 60

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Forms
    module Dsl
      # :nodoc:
      class SubmitButtonInput < Input
        attr_reader :name, :label, :block

        def initialize(name:, label:, **system_arguments, &block)
          @name = name
          @label = label
          @block = block

          super(**system_arguments)
        end

        def to_component
          SubmitButton.new(input: self)
        end

        # :nocov:
        def type
          :submit_button
        end
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
primer_view_components-0.1.8 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.1.7 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.1.6 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.1.5 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.1.4 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.1.3 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.1.2 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.1.1 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.1.0 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.123 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.122 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.121 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.120 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.119 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.118 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.117 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.116 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.115 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.114 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.0.113 lib/primer/forms/dsl/submit_button_input.rb