pub struct textarea;Expand description
A text input for multiple lines.
Pass the initial value as children. attrs are forwarded to the <textarea>, with
extra classes added to its classes. It fills its container and grows with its
content where the browser supports this. Set aria-invalid="true" to show the error
border and focus ring.
ⓘ
view! {
textarea(attrs: attributes! { name="feedback" placeholder="Tell us more" })
}Trait Implementations§
Source§impl Component for textarea
impl Component for textarea
Source§type Props<'__props> = TextareaProps<'__props>
type Props<'__props> = TextareaProps<'__props>
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 textarea
impl RefUnwindSafe for textarea
impl Send for textarea
impl Sync for textarea
impl Unpin for textarea
impl UnsafeUnpin for textarea
impl UnwindSafe for textarea
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