Home > front end >  How to add icon to autocomplete in PrimeVue
How to add icon to autocomplete in PrimeVue

Time:02-10

I've run into this issue. There is a feature request for this at the moment. I've provided my workaround in the answer below.

CodePudding user response:

Anyone looking for alternatives can either add a placeholder value to the Autocomplete with emojis as 'icons'

Option 1

<AutoComplete
  
  id="artist"
  v-model="selectedArtist"
  :suggestions="filteredArtists"
  @complete="searchArtist($event)"
  placeholder="           
  •  Tags:  
  • Related