Sha256: 472805e80c4f86ea07a9f702acde28caf571db62952dfbf22cccce013acf110d

Contents?: true

Size: 911 Bytes

Versions: 79

Compression:

Stored size: 911 Bytes

Contents

<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <div class="<%= @form_group_classes %>">
    <label for="<%= @input_id %>" class="FormControl-label <% if @visually_hide_label %>sr-only<% end %>">
      <%= @label_text %>
    </label>
    <% if leading_visual || @show_clear_button %>
      <div class="<%= @field_wrap_classes %> <% if leading_visual %>FormControl-input-wrap--leadingVisual<% end %>">
        <span class="FormControl-input-leadingVisualWrap">
          <%= leading_visual %>
        </span>
        <%= input %>
        <% if @show_clear_button %>
          <button id="<%= @input_id %>-clear" class="FormControl-input-trailingAction" aria-label="Clear"><%= primer_octicon "x-circle-fill" %></button>
        <% end %>
      </div>
    <% else %>
      <%= input %>
    <% end %>
  </div>
  <%= results %>
  <div id="<%= @list_id %>-feedback" class="sr-only"></div>
<% end %>

Version data entries

79 entries across 79 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.52.2 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.36.4 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.52.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.52.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.36.3 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.51.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.36.2 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.50.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.50.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.36.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.36.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.49.2 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.35.2 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.49.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.49.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.35.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.35.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.48.2 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.48.1 app/components/primer/beta/auto_complete/auto_complete.html.erb