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.19.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.22.2 app/components/primer/alpha/radio_button.rb
primer_view_components-0.18.2 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.22.1 app/components/primer/alpha/radio_button.rb
primer_view_components-0.18.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.22.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.18.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.21.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.17.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.20.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.16.1 app/components/primer/alpha/radio_button.rb
primer_view_components-0.16.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.19.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.15.1 app/components/primer/alpha/radio_button.rb
primer_view_components-0.15.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.18.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.17.1 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.17.0 app/components/primer/alpha/radio_button.rb
primer_view_components-0.14.0 app/components/primer/alpha/radio_button.rb
openproject-primer_view_components-0.16.0 app/components/primer/alpha/radio_button.rb