Skip to content

Demo

An interactive demo application is included in the demo/ directory covering every feature in a tabbed interface.

bash
git clone https://github.com/macrulezru/vue-toast-kit.git
cd vue-toast-kit
npm install
npm run demo

npm run demo installs demo dependencies automatically and starts the dev server. Opens http://localhost:5173.

ScriptDescription
npm run demoInstall demo deps (if needed) + start dev server
npm run demo:devStart dev server only (deps already installed)
npm run demo:buildBuild demo for production
TabWhat it shows
🔔 BasicAll toast types, positions, priorities, action buttons
⚡ Promisetoast.promise() with resolve / reject simulation
↩️ Undotoast.undo() with progress timer, event log
📦 GroupStacking toasts by groupKey, expand on click
🎨 HeadlessuseToastState() with fully custom render — zero package styles
🔀 Multi-instancecreateToastContext() — two isolated zones on one page
🎨 Design SystemLive CSS token editor with preset themes and CSS export
✨ AnimationsAll 6 positions, animated grid picker