euv_ui/component/button/
struct.rs1use super::*;
2
3#[derive(Clone, CustomDebug, Data, New, Props)]
5pub struct EuvButton {
6 pub(crate) label: String,
8 #[new(skip)]
10 #[get(type(copy))]
11 #[prop(custom)]
12 pub(crate) variant: EuvButtonVariant,
13 #[new(skip)]
15 #[get(type(copy))]
16 #[prop(custom)]
17 pub(crate) size: EuvButtonSize,
18 #[new(skip)]
20 #[get(type(copy))]
21 #[prop(custom)]
22 pub(crate) disabled: bool,
23 #[new(skip)]
25 #[get(type(copy))]
26 #[prop(custom)]
27 pub(crate) fill: bool,
28 #[new(skip)]
30 #[get(type(copy))]
31 pub(crate) style: Option<Style>,
32 #[get(type(copy))]
34 pub(crate) tokens: ThemeTokens,
35 #[new(skip)]
37 #[debug(skip)]
38 #[get(skip)]
39 #[prop(custom)]
40 pub(crate) on_click: Option<UiEventHandler>,
41}