Sha256: 05ed797f382c4394defb07637f7d74b0bfe94be753561a2e34e103c1df390c1e

Contents?: true

Size: 799 Bytes

Versions: 42

Compression:

Stored size: 799 Bytes

Contents

<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <label for="<%= @input_id %>" class="<%= @label_classes %>">
    <% if @is_label_visible %>
      <%= @label_text %>
    <% else %>
      <span class="sr-only"><%= @label_text %></span>
    <% end %>
  </label>
  <span class="autocomplete-body">
    <% if @with_icon %>
      <div class="form-control autocomplete-embedded-icon-wrap">
        <%= render Primer::OcticonComponent.new(:search) %>
    <% end %>
    <%= input %>
    <% if @is_clearable %>
      <button id="<%= @input_id %>-clear" class="btn-octicon" aria-label="Clear"><%= primer_octicon "x" %></button>
    <% end %>
    <% if @with_icon %>
      </div>
    <% end %>
    <%= results %>
  </span>
  <div id="<%= @list_id %>-feedback" class="sr-only"></div>
<% end %>

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
primer_view_components-0.0.94 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.93 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.92 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.91 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.90 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.89 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.88 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.87 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.86 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.85 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.84 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.83 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.82 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.81 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.80 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.79 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.78 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.74 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.73 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.72 app/components/primer/beta/auto_complete/auto_complete.html.erb