Sha256: 86299344f4579f0939c925078072001233ac365ec86f56d6410929e9f7dfa891

Contents?: true

Size: 468 Bytes

Versions: 9

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

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

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

          super(**system_arguments)
        end

        def to_component
          CheckBox.new(input: self)
        end

        def type
          :check_box
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
primer_view_components-0.0.94 lib/primer/forms/dsl/check_box_input.rb
primer_view_components-0.0.93 lib/primer/forms/dsl/check_box_input.rb
primer_view_components-0.0.92 lib/primer/forms/dsl/check_box_input.rb
primer_view_components-0.0.91 lib/primer/forms/dsl/check_box_input.rb
primer_view_components-0.0.90 lib/primer/forms/dsl/check_box_input.rb
primer_view_components-0.0.89 lib/primer/forms/dsl/check_box_input.rb
primer_view_components-0.0.88 lib/primer/forms/dsl/check_box_input.rb
primer_view_components-0.0.87 lib/primer/forms/dsl/check_box_input.rb
primer_view_components-0.0.86 lib/primer/forms/dsl/check_box_input.rb