euv_ui/component/modal/view/struct.rs
1use crate::*;
2
3/// Props for the `euv_modal` component.
4///
5/// Defines the strongly-typed interface for the modal dialog.
6#[derive(Clone, CustomDebug, Data, Default, New)]
7pub struct EuvModalProps {
8 /// The modal title text.
9 #[get(type(copy))]
10 pub title: &'static str,
11 /// Optional close handler triggered by overlay or close button click.
12 #[debug(skip)]
13 pub onclick: Option<Rc<dyn Fn(Event)>>,
14}