Download the PHP package theabhishekin/livewire-toast without Composer
On this page you can find all versions of the php package theabhishekin/livewire-toast. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download theabhishekin/livewire-toast
More information about theabhishekin/livewire-toast
Files in theabhishekin/livewire-toast
Download theabhishekin/livewire-toast
More information about theabhishekin/livewire-toast
Files in theabhishekin/livewire-toast
Vendor theabhishekin
Package livewire-toast
Short Description Sonner-style toast notifications for Laravel Livewire with Alpine.js
License MIT
Package livewire-toast
Short Description Sonner-style toast notifications for Laravel Livewire with Alpine.js
License MIT
Please rate this library. Is it a good library?
Informations about the package livewire-toast
Livewire Toast (Sonner-style)
A Sonner-style toast notification package for Laravel Livewire, built with Alpine.js. Inspired by shadcn/ui Sonner and emilkowalski/sonner.
Features
- Stackable toasts with configurable visible count
- Types: default, success, error, warning, info, loading
- Title + description support
- Action & cancel buttons with URL or custom event dispatch
- Position: top-left, top-center, top-right, bottom-left, bottom-center, bottom-right
- Expand on hover (Sonner-style)
- Auto-dismiss with configurable duration
- Rich colors and dark mode support
- Publishable config for full customization
Installation
Setup
-
Add the toast container to your layout (e.g.
resources/views/layouts/app.blade.php): -
Import the toast JavaScript in your app's entry point (e.g.
resources/js/app.js): - Publish the config (optional):
Usage
From a Livewire component
Configuration
Edit config/livewire-toast.php after publishing:
| Key | Default | Description |
|---|---|---|
position |
bottom-right |
Toast container position |
expand |
false |
Expand all toasts on hover |
visible_toasts |
3 |
Max visible toasts when not expanded |
theme |
light |
light / dark |
rich_colors |
true |
Type-colored borders |
close_button |
false |
Show close button on each toast |
offset |
32 |
Container offset (px) |
mobile_offset |
16 |
Mobile offset (px) |
gap |
14 |
Gap between toasts (px) |
duration |
4000 |
Auto-dismiss duration (ms), 0 = never |
dismissible |
true |
Allow manual dismiss |
container_aria_label |
Notifications |
Accessibility label |
Positions
top-left,top-center,top-rightbottom-left,bottom-center,bottom-right
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Issues
If you discover any bugs or have feature requests, please open an issue on GitHub.
All versions of livewire-toast with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/support Version ^11.0|^12.0
livewire/livewire Version ^3.0|^4.0
illuminate/support Version ^11.0|^12.0
livewire/livewire Version ^3.0|^4.0
The package theabhishekin/livewire-toast contains the following files
Loading the files please wait ...