@vuesimple/vs-toast

A simple vue toast.
17,909 33
Install
npm install @vuesimple/vs-toast
Latest Version:3.1.8
Vue:3
Older releases:2
License:MIT
Last Updated:Oct 14, 2026
Links: GitHub  ·  npm
Maintainer: ashwinkshenoy

Vue Simple Toast

🗃 A simple vue toast. Perfect for all your toast/notification scenarios.

A light weight vue plugin built groundup.

npm npm

forthebadge forthebadge forthebadge forthebadge forthebadge forthebadge

📺 Live Demo

Demo: Link

🛠 Install

npm i @vuesimple/vs-toast

🚀 Usage

<script>
  import VsToast from '@vuesimple/vs-toast';

  export default {
    methods: {
      showToast() {
        VsToast.show({
          title: 'Success Title',
          message: 'Success message',
          variant: 'success',
        });
      },
    },
  };
</script>

🌎 CDN

<script src="https://unpkg.com/@vuesimple/vs-toast@<version>/dist/vs-toast.min.js"></script>
<script>
  export default {
    methods: {
      showToast() {
        VsToast.show({
          title: 'Success Title',
          message: 'Success message',
          variant: 'success',
        });
      },
    },
  };
</script>

⚙ Props

Name Type Default Description
variant String - Available variants; success, warning, error, info, secondary
title String - Toast title
message String - Toast body/content/description
position String top-center Available positions: top-left, top-center, top-right, bottom-left, bottom-center, bottom-right
timeout Number 5000 Hide timeout
showClose Boolean false Show/Hide close button
type String toast Available types: toast, alert
animation String slide Default class applied for animation: vs-toast--transition-{animation-name}
isSticky Boolean false Whether toast should close automatically or not

🌟 Tips

You can also directly call success, warning & error functions as below:

VsToast.success('Success Message');

// Or

VsToast.error('Error Message');

// Or

VsToast.warning('Warning Message');

Related Packages

@vuesimple/vs-alert

A simple vue alert. Perfect for all your alert scenarios.

5,598 33
@vuesimple/vs-select

A simple vue select. Perfect for all your select scenarios.

4,630 33
@vuesimple/vs-loader

A simple vue loader. Perfect for all your loader scenarios.

3,581 33

Version History

Version Released License
3.1.8 MIT
3.1.7 MIT
3.1.6 MIT
3.1.5 MIT
3.1.3 MIT