# frozen_string_literal: true module Primer module Alpha CheckBoxGroup = Primer::FormComponents.from_input(Primer::Forms::Dsl::CheckBoxGroupInput) # Check box groups consist of one or more related check boxes. # # @form_usage # class ExampleForm < ApplicationForm # form do |example_form| # example_form.check_box_group(attributes) do |group| # group.check_box(check_box_attributes) # end # end # end class CheckBoxGroup < Primer::Component status :alpha # @!method initialize # # @param name [String] Value for the HTML name attribute. When provided, the check box values will be submitted in to the server in `:array` mode. See the <%= link_to_component(Primer::Alpha::CheckBox) %> for more information. # @param label [String] Label text displayed above the input. # @param hidden [Boolean] When set to `true`, visually hides the group. # @param caption [String] A string describing the field and what sorts of input it expects. Displayed below the group. # @param label_arguments [Hash] Attributes that will be passed to Rails' `builder.label` method. These can be HTML attributes or any of the other label options Rails supports. They will appear as HTML attributes on the `