euv_ui/component/card/
struct.rs1use super::*;
2
3#[derive(Clone, Data, Debug, New, Props)]
5pub struct EuvCard {
6 pub(crate) title: String,
8 #[new(skip)]
10 #[prop(custom)]
11 pub(crate) subtitle: String,
12 #[get(type(copy))]
14 pub(crate) tokens: ThemeTokens,
15 #[new(skip)]
17 pub(crate) children: Vec<NodeId>,
18 #[new(skip)]
20 #[get(type(copy))]
21 pub(crate) style: Option<Style>,
22}
23
24#[derive(Clone, Data, Debug, New, Props)]
26pub struct EuvHeader {
27 pub(crate) title: String,
29 pub(crate) subtitle: String,
31 #[get(type(copy))]
33 pub(crate) tokens: ThemeTokens,
34}
35
36#[derive(Clone, Data, Debug, New, Props)]
38pub struct EuvStatCard {
39 pub(crate) label: String,
41 pub(crate) value: String,
43 pub(crate) caption: String,
45 #[get(type(copy))]
47 pub(crate) tokens: ThemeTokens,
48}