Fork me on GitHub
Logo

Vue icon vue3-simple-typeahead

npmvue3Licensenpmnpm bundle size

Using a strings array

(689/689)
{
  "input": "",
  "selection": null
}

Using an array with user objects. Projecting the email property of the user object.

(100/100)
{
  "input": "",
  "selection": null
}

Using a strings array with custom slots

(1865/1865)
{
  "input": "",
  "selection": null
}

This demo example use the slot #list-item-text to customize the item text of the suggestion list.

<template #list-item-text="slot">
	<span class="material-icons">{{ slot.itemProjection(slot.item) }}</span>
	<span v-html="slot.boldMatchText(slot.itemProjection(slot.item))"></span>
</template>