Overview panel

This commit is contained in:
2025-07-11 13:10:33 +02:00
parent 1ad5c0a698
commit b8f82399e1
4 changed files with 152 additions and 64 deletions
+9
View File
@@ -151,3 +151,12 @@ pub fn RadialChart(percent: f64) -> Element {
}
}
}
#[component]
pub fn ProgressBar(percent: u8, id: Option<String>) -> Element {
rsx! {
span { class: "progress-bar", id: id,
span { class: "progress", style: format!("width: {}%; background-color: currentColor;", percent.clamp(0, 100)) }
}
}
}