vue-toastflow
v1.2.1
Published
Framework-agnostic toast engine with a Vue 3 renderer. Typed core, smooth stack animations, CSS-first theming, and full control over layout and behavior.
Maintainers
Readme
💚 Using Nuxt? Install
nuxt-toastflowinstead — it wraps this package with auto-imports and SSR support.
createToastflow()injects Toastflow's default CSS by default. PasscreateToastflow(config, { css: false })to disable that and importvue-toastflow/styles.cssmanually only when you want the shipped styles.
📦 What's Included
| | Feature |
| :-: | :------------------------------------------------------- |
| 🔌 | createToastflow plugin |
| 🎯 | toast programmatic API |
| 🧱 | <ToastContainer /> · <Toast /> · <ToastProgress /> |
| 🎨 | Default styles and icon components |
🚀 Quick Start
1. Install
pnpm add vue-toastflow2. Register the plugin
// main.ts
import { createApp } from "vue";
import App from "./App.vue";
import { createToastflow } from "vue-toastflow";
createApp(App).use(createToastflow()).mount("#app");3. Use it ✨
<!-- App.vue -->
<script setup lang="ts">
import { ToastContainer, toast } from "vue-toastflow";
toast.success({ title: "Saved", description: "Your changes are live." });
</script>
<template>
<ToastContainer />
</template>💡 See the full Vue Quick Start guide for theming, slots, events, and more.
📄 License
MIT — made with ❤️ by @adrianjanocko
