Migrate from v1.x to v2.x
nextWhen upgrading to v2.x, note the following breaking changes:
- Vue Version Support: Vue 2 support has been dropped in favor of Vue 3.
- Accessing Toasts:
this.$toastis no longer available. You must use theuseToastcomposable to obtain the toast interface. The object returned byuseToastis identical to the oldthis.$toastand contains the same methods. - Transition Duration: The
transitionDurationoption is deprecated due to changes in Vue's transition system. To control transition timing, you should instead change or override the transition classes.