Sha256: e15157065f3ea1228c078921fe6d84359a964015f5b70b62d9d80509b854d6f1

Contents?: true

Size: 1.14 KB

Versions: 11

Compression:

Stored size: 1.14 KB

Contents

<% if object.pills %>
  <%= react_component('Typeahead', object.typeahead_with_pills_options) %>
<% else %>
  <%= content_tag(:div,
                id: object.id,
                data: object.data,
                class: object.classname) do %>
    <div class="pb_typeahead_wrapper">
      <div class="pb_typeahead_loading_indicator" data-pb-typeahead-kit-loading-indicator>
        <%= pb_rails("icon", props: {
          icon: "spinner",
          pulse: true,
          fixed_width: true,
        }) %>
      </div>
      <%= pb_rails("text_input", props: {
        type: "search",
        label: object.label,
        name: object.name,
        value: object.value,
        placeholder: object.placeholder
      }) %>
      <%= pb_rails("list", props: { ordered: 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 %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
playbook_ui-9.12.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.11.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.10.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.9.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.8.0 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_typeahead/typeahead.html.erb
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_typeahead/typeahead.html.erb