euv-example 0.3.37

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

/// Props for the `form_input` component.
///
/// Defines the strongly-typed interface for the labeled input field.
#[derive(Data, Debug, Default)]
pub(crate) struct FormInputProps {
    /// The unique identifier for the input element.
    pub(crate) id: String,
    /// The label text displayed above the input.
    pub(crate) label: String,
    /// The placeholder text shown when the input is empty.
    pub(crate) placeholder: String,
    /// The current input value.
    pub(crate) value: String,
    /// The autocomplete hint for the browser.
    pub(crate) autocomplete: String,
}