Sha256: 6c9785179f10794121a40cb3aa7b59a0aaca1ac64c7ad1c20a28a95e73cd179a

Contents?: true

Size: 366 Bytes

Versions: 61

Compression:

Stored size: 366 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")
        Primer::Forms::Utils.classify(@input.input_arguments)
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
primer_view_components-0.20.0 lib/primer/forms/radio_button_group.rb