pub struct InputProps {
pub variant: InputVariant,
pub size: Size,
pub disabled: bool,
pub readonly: bool,
pub required: bool,
pub placeholder: Option<String>,
pub input_type: Option<String>,
pub class: Option<String>,
pub aria_label: Option<String>,
pub id: Option<String>,
}Expand description
Properties for the styled Input component.
Fields§
§variant: InputVariant§size: Size§disabled: bool§readonly: bool§required: bool§placeholder: Option<String>§input_type: Option<String>§class: Option<String>§aria_label: Option<String>§id: Option<String>Trait Implementations§
Source§impl Clone for InputProps
impl Clone for InputProps
Source§fn clone(&self) -> InputProps
fn clone(&self) -> InputProps
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 InputProps
impl Debug for InputProps
Source§impl Default for InputProps
impl Default for InputProps
Source§fn default() -> InputProps
fn default() -> InputProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for InputProps
impl PartialEq for InputProps
Source§fn eq(&self, other: &InputProps) -> bool
fn eq(&self, other: &InputProps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputProps
Auto Trait Implementations§
impl Freeze for InputProps
impl RefUnwindSafe for InputProps
impl Send for InputProps
impl Sync for InputProps
impl Unpin for InputProps
impl UnsafeUnpin 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