use fission::prelude::*;
fission_component! {
pub StorageWarning<()>
view(_warning, _state, cx) =>
Alert(
kind: AlertKind::Warning,
title: cx.tr("storage.almost_full"),
description: Some(cx.tr("storage.clear_space_before_uploading")),
)
}
Choice | Type | Meaning | Notes / default behavior |
|---|---|---|---|
Info | AlertKind | Informational message. | Good for neutral guidance or status updates. |
Warning | AlertKind | Potential problem that needs attention soon. | Good when the user should notice risk before failure. |
Error | AlertKind | Something failed or is invalid right now. | Use when the user needs to recover or change input. |
Success | AlertKind | Positive confirmation that something worked. | Best for meaningful success, not every tiny action. |