pub struct input;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" })
}Trait Implementations§
Source§impl Component for input
impl Component for input
Source§type Props<'__props> = InputProps
type Props<'__props> = InputProps
The component’s properties. The lifetime covers data borrowed from
the caller.
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for input
impl RefUnwindSafe for input
impl Send for input
impl Sync for input
impl Unpin for input
impl UnsafeUnpin for input
impl UnwindSafe for input
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