Sha256: 5f07d75552d99cb9dcacc95acf73f4fea17510b636c35c806aba92d593dbf0bd

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

<%= content_tag(:div,
                id: object.id,
                data: object.data,
                class: object.classname) do %>
  <div class="pb_typeahead_wrapper">
    <%= pb_rails("text_input", props: { type: "search", label: object.label, placeholder: object.placeholder }) %>
    <%= pb_rails("list", props: { ordered: false, dark: false, borderless: false, xpadding: true, role: "status", aria: { live: "polite" }, data: { pb_typeahead_kit_results: true } }) do %>
    <% end %>
  </div>

  <template data-pb-typeahead-kit-result-option>
    <%= pb_rails("list/item") do %>
      <button type="button" data-result-option-item><%= tag(:slot, name: :content) %></button>
    <% end %>
  </template>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-4.0.1 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-4.0.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb
playbook_ui-3.5.0 app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb