euv_ui/component/button/view/struct.rs
1use crate::*;
2
3/// Props for the `euv_button` component.
4///
5/// Defines the strongly-typed interface for a versatile button.
6#[derive(Clone, CustomDebug, Default)]
7pub struct EuvButtonProps {
8 /// The visual variant determining colour scheme.
9 pub variant: EuvButtonVariant,
10 /// The button label text, used as fallback when no children are provided.
11 pub label: &'static str,
12 /// Optional click event handler.
13 #[debug(skip)]
14 pub onclick: Option<Rc<dyn Fn(Event)>>,
15 /// Whether the button is disabled.
16 pub disabled: Signal<bool>,
17}