Skip to content
On this page

update:modelValue

Event return updated selected reactions

Event nameType
update:modelValueISelectedReactionsItem[]

ISelectedReactionsItem

typescript
interface ISelectedReactionsItem {
    id: number | string;
    count: number;
}
KeyTypeRequired
idstring or numberY
countnumber >= 1Y

Code example

vue
<template>
  <vue-reactions @update:modelValue="updateSelectedReactions" />
</template>

<script setup>
const updateSelectedReactions = (reactions) => {
  console.log(reactions)
};
</script>