conquest-flash
v0.1.0
Published
Retrieve and add flash messages to your Inertia application
Downloads
4
Readme
Conquest Flash
Retrieve and add flash messages to your inertia application
Installation
You can install the package via npm:
npm i conquest-flash
Usage
Your Vue files can use the toast or banner composables to display flash messages. An application can have a single banner available at any point, but an array of toasts.
import { useToast, useBanner } from 'conquest-flash';
const { toast } = useToast()
toast('New toast')
You can use the plugin to listen to shared Inertia messages from the companion Laravel package. Add the following to your app.js
file.
import { plugin } from 'conquest-flash';
app.use(plugin)
Credits
License
The MIT License (MIT). Please see License File for more information.