Expand description
Toast widget for transient notifications. Toast widget for displaying transient notifications.
A toast is a non-blocking notification that appears temporarily and can be dismissed automatically or manually. Toasts support:
- Multiple positions (corners and center top/bottom)
- Automatic dismissal with configurable duration
- Icons for different message types (success, error, warning, info)
- Semantic styling that integrates with the theme system
§Example
ⓘ
let toast = Toast::new("File saved successfully")
.icon(ToastIcon::Success)
.position(ToastPosition::TopRight)
.duration(Duration::from_secs(3));Structs§
- Toast
- A toast notification widget.
- Toast
Action - An interactive action button displayed in a toast.
- Toast
Animation Config - Animation configuration for a toast.
- Toast
Animation State - Tracks the animation state for a toast.
- Toast
Config - Configuration for a toast notification.
- Toast
Content - Content of a toast notification.
- ToastId
- Unique identifier for a toast notification.
- Toast
State - Internal state tracking for a toast.
Enums§
- KeyEvent
- Simplified key event for toast interaction handling.
- Toast
Animation Phase - Animation phase for toast lifecycle.
- Toast
Easing - Easing function for animations.
- Toast
Entrance Animation - Entrance animation type.
- Toast
Event - Result of handling a toast interaction event.
- Toast
Exit Animation - Exit animation type.
- Toast
Icon - Icon displayed in the toast to indicate message type.
- Toast
Position - Position where the toast should be displayed.
- Toast
Style - Visual style variant for the toast.