Sha256: cb8bbef0225486387cb654049d9ccf292bb932656510af79ba46af5d03a99274

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

<%= content_tag(:div, class: "FormControl-checkbox-wrap", hidden: @input.hidden?) do %>
  <%= builder.check_box(@input.name, @input.input_arguments, checked_value, unchecked_value) %>
  <span class="FormControl-checkbox-labelWrap">
    <%= builder.label(@input.name, **@input.label_arguments) do %>
      <%= @input.label %>
    <% end %>
    <%= render(Caption.new(input: @input)) %>
  </span>
<% end %>
<% if @input.nested_form_block %>
  <%= content_tag(:div, nested_form_arguments) do %>
    <%= render(@input.nested_form_block.call(builder)) %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
primer_view_components-0.0.114 lib/primer/forms/check_box.html.erb
primer_view_components-0.0.113 lib/primer/forms/check_box.html.erb