Textarea

Displays a form textarea.

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::Textarea;

#[component]
pub fn TextareaAnatomy() -> impl IntoView {
    view! { <Textarea /> }
}

API Reference

Textarea

The textarea. Takes children as a default value.

Custom Attributes
NameTypeDefaultDescription
defaultString""

Sets the default value of the element. Setting `value` sets this once at page load.

disabledboolfalse

Toggles whether or not the textarea is disabled.

invalidboolfalse

Toggles invalid appearance.

valueReactive<String>""

Reactive signal coupled to the value of the textarea.

Implements global and textarea attributes.