vue3-hot-toast
v0.0.5
Published
> Add beautiful notifications to your Vue app with [vue3-hot-toast](https://github.com/pinky-pig/vue3-hot-toast).
Downloads
15
Maintainers
Readme
Vue3 Hot Toast
Add beautiful notifications to your Vue app with vue3-hot-toast.
Preview
Website
Document: https://vue3-hot-toast.netlify.app
NPM: https://www.npmjs.com/package/vue3-hot-toast
Inspiration
react-hot-toast - Smoking Hot React Notifications.
Install
pnpm install vue3-hot-toast
or
npm install vue3-hot-toast
or
yarn add vue3-hot-toast
Basic usage
<script setup lang="ts">
import toast, { Toaster } from 'vue3-hot-toast'
function notify() {
toast('Here is your toast.')
}
</script>
<template>
<div>
<button @click="notify">Make me a toast</button>
<Toaster />
</div>
</template>