pub struct EuvInputProps {Show 17 fields
pub id: &'static str,
pub name: &'static str,
pub label: &'static str,
pub input_type: &'static str,
pub placeholder: &'static str,
pub value: Signal<String>,
pub autocomplete: &'static str,
pub oninput: Option<Rc<dyn Fn(Event)>>,
pub class: Css,
pub aria_label: &'static str,
pub readonly: bool,
pub disabled: Signal<bool>,
pub wrapper_class: Css,
pub required: bool,
pub max_length: usize,
pub step: &'static str,
pub aria_describedby: &'static str,
}Expand description
Props for the euv_input component.
Defines the strongly-typed interface for the labeled input field.
Fields§
§id: &'static strThe unique identifier for the input element.
name: &'static strThe HTML name attribute for the input element.
label: &'static strThe label text displayed above the input. Empty string means no label.
input_type: &'static strThe HTML input type (e.g. “text”, “email”, “password”, “number”).
placeholder: &'static strThe placeholder text shown when the input is empty.
value: Signal<String>The current input value (reactive Signal).
autocomplete: &'static strThe autocomplete hint for the browser.
oninput: Option<Rc<dyn Fn(Event)>>Optional input event handler. Defaults to on_input_value(value) if None.
class: CssOptional custom CSS class. Defaults to c_euv_input() if empty.
aria_label: &'static strThe accessible name when the visible label is omitted.
readonly: boolWhether the value may be edited.
disabled: Signal<bool>Whether the control is disabled.
wrapper_class: CssOptional class applied to the input wrapper.
required: boolWhether the control is required.
max_length: usizeMaximum number of characters accepted; zero leaves it unspecified.
step: &'static strThe browser step for numeric/date controls; empty leaves the default.
aria_describedby: &'static strAn IDREF naming the field’s hint or description.