Skip to content
Vue3 toastify
Ask AI
Search
K
Main Navigation
Get Started
Usage
API Reference
0.1.14
Changelog
GitHub
Appearance
GitHub
Menu
Return to top
On this page
Table of Contents for current page
Disable multiple.
Each click shows only one toast, and override the previous one.
App.vue
main.ts
import
App
from
'./App.vue'
;
import
{
createApp
}
from
'vue'
;
import
Vue3Toasity
from
'vue3-toastify'
;
import
'vue3-toastify/dist/index.css'
;
createApp
(
App
)
.
use
(
Vue3Toasity
,
{
multiple
:
false
,
}
,
// global options type definition --> ToastContainerOptions
)
.
mount
(
'#app'
)
;
Open browser console
Refresh preview
Open on CodeSandbox
Open Sandbox
Open on CodeSandbox
Open Sandbox
Clean