euv-example 0.3.11

An example application demonstrating the euv UI framework with reactive signals, custom components, and WebAssembly.
Documentation
use crate::*;

/// Props for the `child_display` component.
///
/// Demonstrates strongly-typed props with `String` message and optional callback.
pub struct ChildDisplayProps {
    /// The message text passed from parent to child.
    pub message: String,
    /// Optional click handler for child-to-parent communication.
    pub on_respond: Option<NativeEventHandler>,
}

/// Props for the `limited_counter` component.
///
/// Demonstrates strongly-typed non-String props (`bool`, `i32`) and custom callbacks.
pub struct LimitedCounterProps {
    /// Whether the increment button is disabled.
    pub disabled: bool,
    /// The maximum count value allowed.
    pub max_count: i32,
    /// Optional callback when increment is requested.
    pub on_increment: Option<NativeEventHandler>,
    /// Optional callback when reset is requested.
    pub on_reset: Option<NativeEventHandler>,
}

/// Props for the `callback_input` component.
///
/// Demonstrates strongly-typed custom callback props.
pub struct CallbackInputProps {
    /// Optional callback when the input value changes.
    pub on_change: Option<NativeEventHandler>,
    /// Optional callback when submit is requested.
    pub on_submit: Option<NativeEventHandler>,
    /// Optional callback when reset is requested.
    pub on_reset: Option<NativeEventHandler>,
}