euv_ui/component/stat/view/struct.rs
1use super::*;
2
3/// Props for the [`euv_stat`] component.
4///
5/// Defines the strongly-typed interface for a single metric tile: an
6/// optional leading icon, the accented value, a muted label, and an
7/// optional hint line underneath.
8#[derive(Clone, CustomDebug, Default)]
9pub struct EuvStatProps {
10 /// The metric name rendered under the value in muted styling.
11 pub label: &'static str,
12 /// The metric value rendered in the large accented style.
13 pub value: &'static str,
14 /// The optional secondary note under the label (skipped when empty).
15 pub hint: &'static str,
16 /// The optional leading glyph or icon (skipped when empty).
17 pub icon: &'static str,
18}