0.0.5 โข Published 1 year ago
@spaneco/vue-hot-toast v0.0.5
Features
- ๐ฅ Hot by default
- ๐ฉ Easily Customizable
- โณ Promise API - Automatic loader from a promise
- ๐ Lightweight - less than 3.6kb including styles
- โ Accessible
- ๐คฏ Headless Hooks - Create your own with
useToaster()
Installation
With pnpm
pnpm add @spaneco/vue-hot-toastWith NPM
npm install @spaneco/vue-hot-toastGetting Started
Add the Toaster to your app first. It will take care of rendering all notifications emitted. Now you can trigger toast() from anywhere!
<script setup lang="ts">
import { toast, Toaster } from '@spaneco/vue-hot-toast'
import '@spaneco/vue-hot-toast/dist/vue-hot-toast.css'
toast('Here is your toast.');
</script>
<template>
<Toaster position="top-left"/>
</template>Documentation
Find the full API reference on official documentation.