@deegital/vue-trustup-io-toasteo

Vue package to trigger notification with ease
4,112
Install
npm install @deegital/vue-trustup-io-toasteo
Latest Version:1.1.11
Vue:3
License:MIT
Last Updated:May 26, 2023
Links: npm
Maintainer: axel_dev_trustup

vue-trustup-io-toasteo

A vue package to display toast easily

Installation

Install vue-trustup-io-toasteo with yarn

  yarn add @deegital/vue-trustup-io-toasteo

Usage/Examples

import { NotificationContainer } from "@deegital/vue-trustup-io-toasteo";
import { useToasteo } from "@deegital/vue-trustup-io-toasteo";
// You may also import style in your css file directly.
import "@deegital/vue-trustup-io-toasteo/dist/style.css";

const toasteo = useToasteo();

const method = () => {
  console.log("coucou");
};
<div
  @click="toasteo.success({
      title: 'titre',
      text: 'hello-world',
      timer: 5000,
      callback: method, 
    })"
>
  Display toast success
</div>

<NotificationContainer :toasteo="toasteo" />

Type

ToastOptions type to help you when you defined the params

export interface ToastOptions {
  title?: string;
  text?: string;
  timer?: number; // default : 5000
  callback?: () => void;
  showProgressBar?: boolean; // default : true
  showUndo?: boolean; // default : true
  icon?: string; // default : Relative to called method
}

Development

./cli bootstrap #bootstrap project
./cli yarn install #install dependencies
./cli start #start project
./cli stop #stop project
./cli restart  #restart project

Related Packages

@deegital/vue-3-trustup-io-translations

Vue package that use i18n to translate on our app

7,608
@deegital/nuxt-trustup-io-translations

Nuxt module to translate on our nuxt apps

3,090
@deegital/nuxt-trustup-io-app-switch

Package to handle switch between our app

2,112
@deegital/vue-3-trustup-io-satisfactions

vue-3-trustup-io-satisfactions

2,013
@deegital/vue-3-trustup-io-loader

Customizable loader

1,190

Version History

Version Released Vue License
1.1.11 ^3.2.47 MIT
1.1.10 ^3.2.47 MIT
1.1.9 ^3.2.47 MIT
1.1.8 ^3.2.47 MIT
1.1.7 ^3.2.47 MIT