use fission::prelude::*;
// In view, after a confirmed sync result; the parent owns dismissal state.
Toast(
kind: ToastKind::Success,
message: cx.tr("sync.completed"),
on_close: dismiss_toast_action,
)
Choice | Type | Meaning | Notes / default behavior |
|---|---|---|---|
Info | ToastKind | Neutral informational update. | Good for short confirmations or status notes. |
Success | ToastKind | Positive completion or confirmation. | Good when the user should feel closure after a task. |
Warning | ToastKind | Something deserves attention soon. | Use sparingly because toasts disappear quickly. |
Error | ToastKind | Something failed. | Best when the failure can be explained briefly and the user can recover elsewhere. |