Sha256: ab6f7ba110e98939a3ff7ed016cb8510e33aad7bdc65022a89345595e2f062dc

Contents?: true

Size: 490 Bytes

Versions: 29

Compression:

Stored size: 490 Bytes

Contents

<%= content_tag(:div, **@input.input_arguments) do %>
  <fieldset>
    <% if @input.label %>
      <%= content_tag(:legend, **@input.label_arguments) do %>
        <%= @input.label %>
      <% end %>
    <% end %>
    <%= render(SpacingWrapper.new) do %>
      <% @input.radio_buttons.each do |radio_button| %>
        <%= render(radio_button.to_component) %>
      <% end %>
    <% end %>
  </fieldset>
  <div class="mt-2">
    <%= render(Caption.new(input: @input)) %>
  </div>
<% end %>

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
primer_view_components-0.1.6 lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.1.5 lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.1.4 lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.1.3 lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.1.2 lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.1.1 lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.1.0 lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.0.123 lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.0.122 lib/primer/forms/radio_button_group.html.erb