pub struct InputProps {
pub attrs: Attributes,
}Expand description
A styled input.
Pass input attributes and event handlers through attrs. Extra classes are added to
the input’s classes. It fills its container by default. Set aria-invalid="true" to
show the error border and focus ring.
ⓘ
view! {
input(attrs: attributes! { type="email" placeholder="you@example.com" })
}Fields§
§attrs: AttributesImplementations§
Source§impl InputProps
impl InputProps
Sourcepub fn builder() -> InputPropsBuilder
pub fn builder() -> InputPropsBuilder
Returns a InputPropsBuilder with no properties set.
Trait Implementations§
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