Skip to content

AutoCompleteItem

Table of contents
Table of contents

Use AutoCompleteItem to list results of an auto-completed search.

Examples

Default

  • Selected
  • Not selected
  • <%= render(Primer::AutoComplete::Item.new(selected: true, value: "value")) do |c| %>
    Selected
    <% end %>
    <%= render(Primer::AutoComplete::Item.new(value: "value")) do |c| %>
    Not selected
    <% end %>

    Arguments

    NameTypeDefaultDescription
    valueStringN/AValue of the item.
    selectedBooleanfalseWhether the item is selected.
    disabledBooleanfalseWhether the item is disabled.
    system_argumentsHashN/ASystem arguments