pub struct PasswordInputProps {Show 13 fields
pub value: String,
pub on_change: EventHandler<String>,
pub placeholder: Option<String>,
pub disabled: bool,
pub error: Option<String>,
pub label: Option<String>,
pub required: bool,
pub strength_indicator: bool,
pub style: Option<String>,
pub class: Option<String>,
pub name: Option<String>,
pub id: Option<String>,
pub autofocus: bool,
}Expand description
Password Input properties
Fields§
§value: StringCurrent value
on_change: EventHandler<String>Callback when value changes
placeholder: Option<String>Placeholder text
disabled: boolDisabled state
error: Option<String>Error message to display
label: Option<String>Label text
required: boolRequired field indicator
strength_indicator: boolShow password strength indicator
style: Option<String>Custom inline styles
class: Option<String>Custom class name
name: Option<String>Input name attribute
id: Option<String>Input id attribute
autofocus: boolAutofocus on mount
Implementations§
Source§impl PasswordInputProps
impl PasswordInputProps
Sourcepub fn builder() -> PasswordInputPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> PasswordInputPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building PasswordInputProps.
On the builder, call .value(...)(optional), .on_change(...), .placeholder(...)(optional), .disabled(...)(optional), .error(...)(optional), .label(...)(optional), .required(...)(optional), .strength_indicator(...)(optional), .style(...)(optional), .class(...)(optional), .name(...)(optional), .id(...)(optional), .autofocus(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PasswordInputProps.
Trait Implementations§
Source§impl Clone for PasswordInputProps
impl Clone for PasswordInputProps
Source§fn clone(&self) -> PasswordInputProps
fn clone(&self) -> PasswordInputProps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more