Code: Select all
<Listbox :options="newGroupedMarkets" optionLabel="name" optionGroupLabel="label" optionGroupChildren="items">
<template #option="slotProps">
<div class="option-row">
<span>
{{slotProps.option.name}}
<Badge value="New" v-if="slotProps.option.isNew" />
</span>
<div @click="onRemove(slotProps.option.id)" class="remove-icon far fa-trash-alt" />
</div>
</template>
</Listbox>