Sha256: b127c644bf57fd31fa2a8597534c21f86db2febc16b4ee10e7aebd2dfd508948

Contents?: true

Size: 1.12 KB

Versions: 46

Compression:

Stored size: 1.12 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-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>
  <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

46 entries across 46 versions & 1 rubygems

Version Path
primer_view_components-0.1.5 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.4 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.3 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.2 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.123 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.122 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.121 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.120 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.119 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.118 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.117 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.116 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.115 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.114 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.113 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.112 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.111 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.0.110 app/components/primer/beta/auto_complete/auto_complete.html.erb