Progress
A progress bar indicating completion status. Supports determinate (with value) and indeterminate (loading) modes.
Primitive: ProgressARIA: role="progressbar"
25%
65%
100%
progress.rs
use stratum_leptos::*;
view! {
<Progress value=25.0 />
<Progress value=65.0 />
<Progress value=100.0 />
<Progress /> // indeterminate
}Installation
stratum add progressProps
| Prop | Type | Default | Description |
|---|---|---|---|
| value | Option<f64> | None | Current value (None = indeterminate) |
| max | f64 | 100.0 | Maximum value |
Accessibility
- Renders with
role="progressbar". - Sets
aria-valuenow,aria-valuemin="0", andaria-valuemax. - When value is None (indeterminate),
aria-valuenowis omitted.