Sha256: 844f1c04a06894af0da8238d7f3dc4899586247180ce4627e7b94a8fec61d3d7

Contents?: true

Size: 1.1 KB

Versions: 37

Compression:

Stored size: 1.1 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_classes %>">
      <div class="Overlay-body Overlay-body--paddingNone">
        <%= results %>
      </div>
    </div>
  </div>
  <div id="<%= @list_id %>-feedback" class="sr-only"></div>
<% end %>

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.9.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.8.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.8.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.7.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.7.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.6.3 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.6.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.5.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.5.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.4.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.3.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.3.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.2.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.9 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.8 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.7 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.1.6 app/components/primer/beta/auto_complete/auto_complete.html.erb