Sha256: 5fdeb2b10dbce87149dad31d494632e58785464eb97d5e4939178b3a8af541e1
Contents?: true
Size: 838 Bytes
Versions: 27
Compression:
Stored size: 838 Bytes
Contents
<%= render(FormControl.new(input: @input)) do %> <% if @input.leading_visual || @input.show_clear_button? %> <%= content_tag(:div, class: @input.field_wrap_classes) do %> <% if @input.leading_visual %> <span class="FormControl-input-leadingVisualWrap"> <%= render(Primer::OcticonComponent.new(**@input.leading_visual)) %> </span> <% end %> <%= builder.text_field(@input.name, **@input.input_arguments) %> <% if @input.show_clear_button? %> <button id="<%= @input.clear_button_id %>" class="FormControl-input-trailingAction" aria-label="Clear"> <%= render(Primer::OcticonComponent.new(icon: :"x-circle-fill")) %> </button> <% end %> <% end %> <% else %> <%= builder.text_field(@input.name, **@input.input_arguments) %> <% end %> <% end %>
Version data entries
27 entries across 27 versions & 1 rubygems