Handling autoClose
The autoClose
prop accept a duration in milliseconds or false
.
Change the default delay
INFO
close toast after 8 seconds
Change the delay per toast for more control
WARNING
It will overrides the global options
The autoClose
prop accept a duration in milliseconds or false
.
INFO
close toast after 8 seconds
<template> <h1>Hello {{ msg }}</h1> </template> <script setup lang="ts"> import { ref } from 'vue'; const msg = ref<string>('world'); </script>
WARNING
It will overrides the global options
<template> <h1>Hello {{ msg }}</h1> </template> <script setup lang="ts"> import { ref } from 'vue'; const msg = ref<string>('world'); </script>
<template> <h1>Hello {{ msg }}</h1> </template> <script setup lang="ts"> import { ref } from 'vue'; const msg = ref<string>('world'); </script>
<template> <h1>Hello {{ msg }}</h1> </template> <script setup lang="ts"> import { ref } from 'vue'; const msg = ref<string>('world'); </script>