euv-example 0.5.6

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
use crate::*;

/// Props for the `my_modal` component.
///
/// Defines the strongly-typed interface for the modal dialog.
#[derive(Default)]
pub(crate) struct MyModalProps {
    /// The modal title text.
    pub(crate) title: &'static str,
    /// Optional close handler triggered by overlay or close button click.
    pub(crate) onclick: Option<Rc<dyn Fn(Event)>>,
    /// The child content rendered inside the modal body.
    pub(crate) children: VirtualNode,
}