Sha256: ff4ecc9751b5c0ab4fe0bbf7209de6254f2e2120b25089d33f34a6a422c1c737

Contents?: true

Size: 433 Bytes

Versions: 61

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

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

      def initialize(input:)
        @input = input

        @input.add_label_classes("FormControl-label", "mb-2")
        @input.add_input_classes("FormControl-radio-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.16.0 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.15.0 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.14.0 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.13.1 lib/primer/forms/radio_button_group.rb
primer_view_components-0.13.2 lib/primer/forms/radio_button_group.rb
primer_view_components-0.13.1 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.13.0 lib/primer/forms/radio_button_group.rb
primer_view_components-0.13.0 lib/primer/forms/radio_button_group.rb
primer_view_components-0.12.0 lib/primer/forms/radio_button_group.rb
primer_view_components-0.11.0 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.12.1 lib/primer/forms/radio_button_group.rb
primer_view_components-0.10.0 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.11.0 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.10.0 lib/primer/forms/radio_button_group.rb
primer_view_components-0.9.0 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.9.1 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.9.0 lib/primer/forms/radio_button_group.rb
openproject-primer_view_components-0.8.0 lib/primer/forms/radio_button_group.rb
primer_view_components-0.8.0 lib/primer/forms/radio_button_group.rb
primer_view_components-0.7.0 lib/primer/forms/radio_button_group.rb