components
nav
layouts
×
Toast
A blade component for toast type notification!
This is the simple toast style notification component. The toast component does not have any other options or slots!
You must place this component on your index file for global access.
# closable
This attribute defines the closable functionality!
<x-btui-toast closable="true" />
Trigger the toast event to show the notification!
In AlpineJs: use $dispatch Method
In Livewire: use $dispatchBrowserEvent Method
<a x-on:click="$dispatch("toast", {msg: "Hello!"})"> </a>
Result:
See available options! (* means required)
name | type | default | options |
---|---|---|---|
Closable | Boolean | false | True or False |