Toastflow
Playground
Vue

Vue Quick Start

Install Toastflow in Vue and show your first toast.
vue-toastflow npm versionvue-toastflow npm downloads

Use vue-toastflow when you have a normal Vue app entry file.

Install

pnpm add vue-toastflow

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");

Render one container

App.vue
<script setup lang="ts">
import { ToastContainer } from "vue-toastflow";
</script>

<template>
  <ToastContainer />
  <RouterView />
</template>

Fire a toast

save.ts
import { toast } from "vue-toastflow";

toast.success({
  title: "Saved",
  description: "Your changes are live.",
});
toast.* needs the plugin-created store. Install createToastflow() before calling toasts from stores, services, or composables.

Minimal File Tree

src/main.ts
import { createApp } from "vue";
import App from "./App.vue";
import { createToastflow } from "vue-toastflow";

createApp(App).use(createToastflow()).mount("#app");

Next Steps

Toasts

Types, create call styles, per-toast overrides, positions, duplicates, and lifecycle hooks.

Timers & Progress

Duration rules, pause strategies, queue behavior, and the loading helper.

Buttons & Actions

Action buttons, close behavior, and timestamps.

Styling

Override variables, create theme variants, or disable shipped CSS.

Live examples

Try show, typed helpers, loading toasts, updates, and store controls in the browser.

Runtime exports

Components, toast, types, and core utilities exported by vue-toastflow.
Copyright © 2026