Basics
If you need a notification on the page, you can use the moonshine::alert component.
Alert
Notification type
You can change the notification type by specifying the type component.
Available types:
- <span class="badge badge-primary">primary</span>
- <span class="badge badge-secondary">secondary</span>
- <span class="badge badge-success">success</span>
- <span class="badge badge-warning">warning</span>
- <span class="badge badge-error">error</span>
- <span class="badge badge-info">info</span>
Icon
It is possible for a notification to change its icon; to do this, you need to pass it to the icon parameter.
Alert
For more detailed information, please refer to the section Icons .
Deleting notifications
To remove notifications after some time, you need to pass the removable parameter with the value TRUE.