pub struct TextareaProps<'__a> {
pub attrs: Attributes,
pub child: Child<'__a>,
}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" })
}Fields§
§attrs: Attributes§child: Child<'__a>Implementations§
Source§impl<'__a> TextareaProps<'__a>
impl<'__a> TextareaProps<'__a>
Sourcepub fn builder() -> TextareaPropsBuilder<'__a>
pub fn builder() -> TextareaPropsBuilder<'__a>
Returns a TextareaPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for TextareaProps<'__a>
impl<'__a> !Sync for TextareaProps<'__a>
impl<'__a> !UnwindSafe for TextareaProps<'__a>
impl<'__a> Freeze for TextareaProps<'__a>
impl<'__a> Send for TextareaProps<'__a>
impl<'__a> Unpin for TextareaProps<'__a>
impl<'__a> UnsafeUnpin for TextareaProps<'__a>
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