euv-example 0.5.1

An example application demonstrating the euv UI framework with reactive signals, custom components, and WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::*;

/// Props for the `my_modal` component.
///
/// Defines the strongly-typed interface for the modal dialog.
#[derive(Data, New)]
pub(crate) struct MyModalProps {
    /// The modal title text.
    #[get(pub(crate))]
    #[set(pub(crate))]
    pub(crate) title: String,
    /// Optional close handler triggered by overlay or close button click.
    #[get(pub(crate))]
    #[set(pub(crate))]
    pub(crate) on_close: Option<NativeEventHandler>,
}