egui_charts/ui_kit/notifications/mod.rs
1//! Toast notifications with optional automatic dismissal.
2//!
3//! Keep a [`Toasts`] queue in host state, add messages as events occur and call
4//! [`NotificationPanel::show_with_toasts`] each frame to display them. Two or more toasts
5//! collapse into a stack showing the newest; a pill expands it and a button beside it dismisses
6//! every dismissible toast.
7//!
8//! Each toast is announced by screen readers on Linux, Windows and macOS as a live region (polite,
9//! or assertive for errors); on the web nothing is announced, since eframe does not forward
10//! accessibility updates there.
11
12mod panel;
13mod toast;
14mod toasts;
15
16pub use panel::{NotificationPanel, NotificationPanelConfig, NotificationPosition};
17pub use toast::{Toast, ToastKind, TradingToast};
18pub use toasts::Toasts;