Sha256: 3c375ec821f46ba2b125c4da89124df0712366c8ac2b7ab12134a1b36382e804

Contents?: true

Size: 345 Bytes

Versions: 9

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Forms
    # :nodoc:
    class CheckBox < BaseComponent
      delegate :builder, :form, to: :@input

      def initialize(input:)
        @input = input
        @input.add_label_classes("FormControl-label")
        @input.add_input_classes("FormControl-checkbox")
      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/check_box.rb
primer_view_components-0.0.93 lib/primer/forms/check_box.rb
primer_view_components-0.0.92 lib/primer/forms/check_box.rb
primer_view_components-0.0.91 lib/primer/forms/check_box.rb
primer_view_components-0.0.90 lib/primer/forms/check_box.rb
primer_view_components-0.0.89 lib/primer/forms/check_box.rb
primer_view_components-0.0.88 lib/primer/forms/check_box.rb
primer_view_components-0.0.87 lib/primer/forms/check_box.rb
primer_view_components-0.0.86 lib/primer/forms/check_box.rb