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§
- Notification
- Standard notification.
- Notification
Component - Standard notification component.
- Notification
Component Props - Props for
NotificationComponent - Notification
Factory - Standard notification factory.
- Notifications
Manager - Returned object from the
use_notificationhook. Can spawn new notifications. - Notifications
Provider - The notification provider component.
- Notifications
Provider Props - Props for
NotificationsProvider
Enums§
- Notification
Type - Standard notification type.
- Notifications
Position - Notifications position on the screen
Traits§
- Notifiable
- This trait provides an interface for the notification. Everything,
that implements this trait, can be used in the
NotificationsProvider. - Notifiable
Component Factory - This trait provides an interface for the notification component factory.
Functions§
- use_
notification - This hook is used to manage notifications.
Returned
NotificationsManagercan be used to spawn new notifications of the typeT.