How to use In main.js import components from '@/components/loading-toast/index' In .vue files this.$loading().show('loading...'); this.$loading().hide(); this.$toast('success!');