Crate yew_notifications
source ·Expand description
yew-notifications notifications components library for Yew. It’s like react-toastify but for yew and more simpler.
The purpose of this library is to provide the ability to easily add notifications to the yew web app.
Examples
Structs
- Standard notification.
- Standard notification component.
- Props for
NotificationComponent
- Standard notification factory.
- Returned object from the
use_notification
hook. Can spawn new notifications. - The notification provider component.
- Props for
NotificationsProvider
Enums
- Standard notification type.
- Notifications position on the screen
Traits
- This trait provides an interface for the notification. Everything, that implements this trait, can be used in the
NotificationsProvider
. - This trait provides an interface for the notification component factory.
Functions
- This hook is used to manage notifications. Returned
NotificationsManager
can be used to spawn new notifications of the typeT
.