euv_ui/component/shadcn_extra/
struct.rs1use super::*;
2
3#[derive(Clone, Data, Debug, New, Props)]
5pub struct EuvAlertDialog {
6 #[get(type(copy))]
8 pub(crate) open: Signal<bool>,
9 pub(crate) title: String,
11 #[new(skip)]
13 #[prop(custom)]
14 pub(crate) description: String,
15 #[new(skip)]
17 pub(crate) cancel_label: String,
18 #[new(skip)]
20 pub(crate) confirm_label: String,
21 #[get(type(copy))]
23 pub(crate) confirmed: Signal<bool>,
24 #[get(type(copy))]
26 pub(crate) tokens: ThemeTokens,
27}
28
29#[derive(Clone, Data, Debug, New, Props)]
31pub struct EuvCollapsible {
32 #[get(type(copy))]
34 pub(crate) open: Signal<bool>,
35 pub(crate) title: String,
37 #[get(type(copy))]
39 pub(crate) content: NodeId,
40 #[get(type(copy))]
42 pub(crate) tokens: ThemeTokens,
43}
44
45#[derive(Clone, Data, Debug, New, Props)]
47pub struct EuvToggleGroup {
48 pub(crate) options: Vec<String>,
50 #[get(type(copy))]
52 pub(crate) selected: Signal<usize>,
53 #[get(type(copy))]
55 pub(crate) tokens: ThemeTokens,
56}
57
58#[derive(Clone, Data, Debug, New, Props)]
60pub struct EuvInputOtp {
61 #[get(type(copy))]
63 pub(crate) value: Signal<String>,
64 #[get(type(copy))]
66 pub(crate) length: usize,
67 #[get(type(copy))]
69 pub(crate) tokens: ThemeTokens,
70}
71
72#[derive(Clone, Data, Debug, New, Props)]
74pub struct EuvCommand {
75 #[new(skip)]
77 #[get(skip)]
78 #[prop(custom)]
79 pub(crate) query: Option<Signal<String>>,
80 #[new(skip)]
82 #[prop(custom)]
83 pub(crate) placeholder: String,
84 pub(crate) items: Vec<String>,
86 #[get(type(copy))]
88 pub(crate) selected: Signal<Option<usize>>,
89 #[get(type(copy))]
91 pub(crate) tokens: ThemeTokens,
92}
93
94#[derive(Clone, Data, Debug, New, Props)]
96pub struct EuvHoverCard {
97 #[new(skip)]
99 #[get(skip)]
100 #[prop(custom)]
101 pub(crate) open: Option<Signal<bool>>,
102 pub(crate) trigger_label: String,
104 pub(crate) title: String,
106 #[new(skip)]
108 #[prop(custom)]
109 pub(crate) description: String,
110 #[get(type(copy))]
112 pub(crate) tokens: ThemeTokens,
113}
114
115#[derive(Clone, Data, Debug, New, Props)]
117pub struct EuvCalendar {
118 pub(crate) month_label: String,
120 #[get(type(copy))]
122 pub(crate) days_in_month: u32,
123 #[get(type(copy))]
125 pub(crate) selected_day: Signal<u32>,
126 #[get(type(copy))]
128 pub(crate) tokens: ThemeTokens,
129}
130
131#[derive(Clone, Copy, Data, Debug, New, Props)]
133pub struct EuvAspectRatio {
134 #[get(type(copy))]
136 pub(crate) ratio: f32,
137 #[get(type(copy))]
139 pub(crate) child: NodeId,
140 #[get(type(copy))]
142 pub(crate) tokens: ThemeTokens,
143}
144
145#[derive(Clone, Data, Debug, New, Props)]
147pub struct EuvMenubar {
148 pub(crate) menus: Vec<String>,
150 #[get(type(copy))]
152 pub(crate) active_menu: Signal<Option<usize>>,
153 #[get(type(copy))]
155 pub(crate) tokens: ThemeTokens,
156}
157
158#[derive(Clone, Data, Debug, New, Props)]
160pub struct EuvCarousel {
161 pub(crate) slides: Vec<String>,
163 #[get(type(copy))]
165 pub(crate) active_slide: Signal<usize>,
166 #[get(type(copy))]
168 pub(crate) tokens: ThemeTokens,
169}