Skip to content

Use a custom id

A custom toastId can be used to replace the one generated. You can provide a number or a string.

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

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

Released under the MIT License.