Sha256: 555b4ed85a185c5cc8646c2bc3ea8adf27def64321b63a7346de122e6fe6370c

Contents?: true

Size: 759 Bytes

Versions: 140

Compression:

Stored size: 759 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Alpha
    RadioButton = Primer::FormComponents.from_input(Primer::Forms::Dsl::RadioButtonInput)

    # Radio buttons represent one of a set of options and are rendered as `<input type="radio">` in HTML.
    # **NOTE**: You probably want to use the <%= link_to_component(Primer::Alpha::RadioButtonGroup) %>
    # component instead, as it allows rendering a group of options.
    #
    # @form_usage
    #   class ExampleForm < ApplicationForm
    #     form do |example_form|
    #       example_form.radio_button(attributes)
    #     end
    #   end
    class RadioButton < Primer::Component
      status :alpha

      # @!method initialize
      #
      # @!macro form_input_arguments
    end
  end
end

Version data entries

140 entries across 140 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.52.2 app/components/primer/alpha/radio_button.rb
primer_view_components-0.36.4 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.52.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.52.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.36.3 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.51.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.36.2 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.50.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.50.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.36.1 app/components/primer/alpha/radio_button.rb
primer_view_components-0.36.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.49.2 app/components/primer/alpha/radio_button.rb
primer_view_components-0.35.2 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.49.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.49.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.35.1 app/components/primer/alpha/radio_button.rb
primer_view_components-0.35.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.48.2 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.48.1 app/components/primer/alpha/radio_button.rb