Sha256: 2ed86a7683937ca05f9297fd756283f8f45ae9c92c4dd8b3501c2f373ed79020

Contents?: true

Size: 796 Bytes

Versions: 2

Compression:

Stored size: 796 Bytes

Contents

<%= render Yattho::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 Yattho::Beta::Octicon.new(:search) %>
    <% end %>
    <%= input %>
    <% if @is_clearable %>
      <button id="<%= @input_id %>-clear" class="btn-octicon" aria-label="Clear"><%= yattho_octicon "x" %></button>
    <% end %>
    <% if @with_icon %>
      </div>
    <% end %>
    <%= results %>
  </span>
  <div id="<%= @list_id %>-feedback" class="sr-only"></div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 app/components/yattho/alpha/auto_complete/auto_complete.html.erb
yattho_view_components-0.0.1 app/components/yattho/alpha/auto_complete/auto_complete.html.erb