Textarea

Displays a form textarea.

Field

Enter your message below.

Disabled

Invalid

Please enter a valid message.

Button

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

Creates a textarea that 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.

valueString""

Reactive signal coupled to the value of the textarea.

Implements global and textarea attributes.