use fission::prelude::*;
// Inside a Compose view, only while the operation is pending.
Spinner(
motion: SpinnerMotion::Default,
label: cx.tr("sync.loading_messages"),
)
Field | Type | Meaning | Notes / default behavior |
|---|---|---|---|
id | WidgetId | Stable identity used to drive the dot animations. | Compose supplies it; ordinary Rust construction should provide an explicit ID. |
color | Option<Color> | Dot color override. | Defaults to the theme's primary color. |
motion | Option<SpinnerMotion> | Spinner-owned motion preset or custom tracks. | None is static; set SpinnerMotion::Default or Pulse for animation. |
label | Option<String> | Accessible description of what is loading. | Defaults to “Loading”; prefer a translated task-specific name. |