@o-ui/toast

A simple toast in vue

Usage no npm install needed!

<script type="module">
  import oUiToast from 'https://cdn.skypack.dev/@o-ui/toast';
</script>

README

toast

A simple toast in vue

examples

main.js

import toast from '@o-ui/toast'
Vue.use(toast)

components

this.$toast('Lorem ipsum dolor sit amet')

this.$toast({
  message: 'Lorem ipsum dolor sit amet',
  duration: 3000
}).then(() => {
  console.log('toast')
})