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.30.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.39.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.39.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.38.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.29.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.28.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.37.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.37.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.36.2 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.36.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.36.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.27.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.35.2 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.35.1 app/components/primer/alpha/radio_button.rb
primer_view_components-0.26.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.35.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.26.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.34.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.33.2 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.33.1 app/components/primer/alpha/radio_button.rb