vue3-tailwind-notifications

1.0.1 • Public • Published

vue3-notifications

Super simple notification plugin for vue3 with actions styled in tailwindcss.

Install

npm i vue3-tailwind-notifications

// app.js
import {createApp} from 'vue';
import Notify from 'vue3-tailwind-notifications';

const app = createApp({});
app.use(Notify);
app.mount('#app');

// Simple usage
app.$notify('User added.');

// Simple action
app.$notify('User deleted.', {
    action: {
        label: 'Restore user',
        action: () => {
            // Do your thing here. E.g.
            Inertia.post('/users/restore/' + this.user.id);
        }
    }
});

/vue3-tailwind-notifications/

    Package Sidebar

    Install

    npm i vue3-tailwind-notifications

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    5.76 kB

    Total Files

    5

    Last publish

    Collaborators

    • casmo