Sha256: f6e067212cc98c68c1d5cf8550ff5a3f7c6af856340c89415c5c8bf55e665248

Contents?: true

Size: 430 Bytes

Versions: 61

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

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

      def initialize(input:)
        @input = input

        @input.add_label_classes("FormControl-label", "mb-2")
        @input.add_input_classes("FormControl-check-group-wrap")

        Primer::Forms::Utils.classify(@input.input_arguments)
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.23.0 lib/primer/forms/check_box_group.rb
primer_view_components-0.19.0 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.22.2 lib/primer/forms/check_box_group.rb
primer_view_components-0.18.2 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.22.1 lib/primer/forms/check_box_group.rb
primer_view_components-0.18.1 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.22.0 lib/primer/forms/check_box_group.rb
primer_view_components-0.18.0 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.21.0 lib/primer/forms/check_box_group.rb
primer_view_components-0.17.0 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.20.0 lib/primer/forms/check_box_group.rb
primer_view_components-0.16.1 lib/primer/forms/check_box_group.rb
primer_view_components-0.16.0 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.19.0 lib/primer/forms/check_box_group.rb
primer_view_components-0.15.1 lib/primer/forms/check_box_group.rb
primer_view_components-0.15.0 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.18.1 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.17.1 lib/primer/forms/check_box_group.rb
openproject-primer_view_components-0.17.0 lib/primer/forms/check_box_group.rb
primer_view_components-0.14.0 lib/primer/forms/check_box_group.rb