pub struct InputProps {
pub input_type: Option<String>,
pub value: String,
pub placeholder: Option<String>,
pub disabled: Option<bool>,
pub required: Option<bool>,
pub label: Option<String>,
pub error: Option<String>,
pub helper_text: Option<String>,
pub on_change: Option<fn(String)>,
}
Expand description
Input props
Fields§
§input_type: Option<String>
Input type (text, password, email, etc.)
value: String
Input value
placeholder: Option<String>
Input placeholder
disabled: Option<bool>
Whether the input is disabled
required: Option<bool>
Whether the input is required
label: Option<String>
Input label
error: Option<String>
Input error message
helper_text: Option<String>
Input helper text
on_change: Option<fn(String)>
On change handler
Trait Implementations§
Source§impl Clone for InputProps
impl Clone for InputProps
Source§fn clone(&self) -> InputProps
fn clone(&self) -> InputProps
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InputProps
impl RefUnwindSafe for InputProps
impl Send for InputProps
impl Sync for InputProps
impl Unpin for InputProps
impl UnwindSafe for InputProps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting