pub struct EuvInputProps {
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,
}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.
Trait Implementations§
Source§impl Clone for EuvInputProps
impl Clone for EuvInputProps
Source§fn clone(&self) -> EuvInputProps
fn clone(&self) -> EuvInputProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EuvInputProps
impl Debug for EuvInputProps
Source§impl Default for EuvInputProps
impl Default for EuvInputProps
Source§fn default() -> EuvInputProps
fn default() -> EuvInputProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvInputProps
impl !Send for EuvInputProps
impl !Sync for EuvInputProps
impl !UnwindSafe for EuvInputProps
impl Freeze for EuvInputProps
impl Unpin for EuvInputProps
impl UnsafeUnpin for EuvInputProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more