Skip to content

Update a toast

When you update a toast, the toast options and the content are inherited but don't worry you can update them as well.

Basic example

<template>
  <h1>Hello {{ msg }}</h1>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const msg = ref<string>('world');
</script>

Update the content

<template>
  <h1>Hello {{ msg }}</h1>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const msg = ref<string>('world');
</script>

TIP

you can also update other ToastOptions

Released under the MIT License.