Notification/Toast Component Library Using Vue3

vue-toast-notification-library

Vue notification is easy to use, customizable notification/toast library built with Vue3.

javascript toast library, toast notification github, bootstrap 5 toast notification, toast library android, javascript toast message example, toast notification jquery, vue toast component library

Features:

  • Custom message.
  • Custom position.
  • 4 types: success, alert, warning, and information.
  • 3 themes: light, dark, glass.
  • Automatic rejection.

How to make use of it:

Install and download:

# Yarn
$ yarn add @dafcoe/vue-notification

# NPM
$ npm i @dafcoe/vue-notification

1. Import vue-notification.

// Globally
import VueNotificationList from '@dafcoe/vue-notification'
import '@dafcoe/vue-notification/dist/vue-notification.css'
const app = createApp(App)
app.use(VueNotificationList).mount('#app')
// Or Locally
import { VueNotificationList } from '@dafcoe/vue-notification'
import '@dafcoe/vue-notification/dist/vue-notification.css'

2. Add the <vue-notification-list> component to the template and set the position:

  • top-left
  • top-right
  • bottom-left
  • bottom-right
<vue-notification-list position=”top-left”></vue-notification-list>

3. Push notification.

import { useNotificationStore } from '@dafcoe/vue-notification'
const { setNotification } = useNotificationStore(OPTIONS)
setNotification(myNotification)

4. Available options.

{
  "message": "Notification Message",
  "type": "info"|"warning"|"alert"|"success",
  "showIcon": true,
  "dismiss": {
    "manually": false,
    "automatically": true
  },
  "duration": 5000,
  "showDurationProgress": true,
  "appearance": "light"|"dark"|"glass"
}

Notification/Toast Library, vue-notification Plugin/Github, javascript notification library


See Demo And Download

Official Website(dafcoe): Click Here

This superior jQuery/javascript plugin is developed by dafcoe. For extra Advanced Usages, please go to the official website.