Sha256: 8b3161a3945a20286bc18035a20a97686c5a679e1b59984224d6bf848e66e080

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

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-fieldWrap--input-leadingVisual<% end %>">
            <%= leading_visual %>
            <%= 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>
  <div class="Overlay-backdrop--anchor">
    <div class="Overlay Overlay--height-auto Overlay--width-auto">
      <div class="Overlay-body Overlay-body--paddingNone">
        <%= results %>
      </div>
    </div>
  </div>
  <div id="<%= @list_id %>-feedback" class="sr-only"></div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
primer_view_components-0.0.77 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.76 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.75 app/components/primer/beta/auto_complete/auto_complete.html.erb