euv-example 0.26.7

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

/// Props for the `limited_counter` component.
///
/// Demonstrates strongly-typed non-String props (`bool`, `i32`) and custom callbacks.
#[derive(Clone, CustomDebug, Default)]
pub(crate) struct LimitedCounterProps {
    /// Whether the increment button is disabled.
    pub(crate) disabled: Signal<bool>,
    /// The maximum count value allowed.
    pub(crate) max_count: Signal<i32>,
    /// Optional callback when increment is requested.
    #[debug(skip)]
    pub(crate) on_increment: Option<Rc<dyn Fn(Event)>>,
    /// Optional callback when reset is requested.
    #[debug(skip)]
    pub(crate) on_reset: Option<Rc<dyn Fn(Event)>>,
}

/// Props for the `page_component_binding` component.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub(crate) struct PageComponentBindingProps;