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.114 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.113 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.112 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.111 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.110 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.109 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.108 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.107 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.106 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.105 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.104 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.103 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.102 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.101 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.100 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.99 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.98 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.97 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.96 app/components/primer/alpha/auto_complete/auto_complete.html.erb
primer_view_components-0.0.95 app/components/primer/alpha/auto_complete/auto_complete.html.erb