euv_ui/component/hero/view/
struct.rs1use super::*;
2
3#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
5pub struct EuvHeroAction {
6 #[get(type(copy))]
8 pub text: &'static str,
9 #[get(type(copy))]
11 pub link: &'static str,
12 #[get(type(copy))]
14 pub primary: bool,
15}
16
17#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
19pub struct EuvHeroProps {
20 #[get(type(copy))]
22 pub title: &'static str,
23 #[get(type(copy))]
25 pub subtitle: &'static str,
26 #[get(type(copy))]
28 pub actions: &'static [EuvHeroAction],
29}
30
31#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
33pub struct EuvFeature {
34 #[get(type(copy))]
36 pub icon: &'static str,
37 #[get(type(copy))]
39 pub title: &'static str,
40 #[get(type(copy))]
42 pub details: &'static str,
43}
44
45#[derive(Clone, Copy, CustomDebug, Default)]
47pub struct EuvHeroActionProps {
48 pub action: EuvHeroAction,
50}
51
52#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
54pub struct EuvFeatureGridProps {
55 #[get(type(copy))]
57 pub features: &'static [EuvFeature],
58}