2024-06-23 23:33:09 +08:00
|
|
|
# Input
|
|
|
|
|
|
|
|
```rust demo
|
|
|
|
let value = RwSignal::new(String::from("o"));
|
|
|
|
|
|
|
|
view! {
|
2024-07-08 14:40:17 +08:00
|
|
|
<Textarea value placeholder="Textarea"/>
|
2024-06-23 23:33:09 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Disabled
|
|
|
|
|
|
|
|
```rust demo
|
|
|
|
let value = RwSignal::new(String::from("o"));
|
|
|
|
|
|
|
|
view! {
|
2024-07-08 14:40:17 +08:00
|
|
|
<Textarea value disabled=true/>
|
2024-06-23 23:33:09 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-06-24 23:26:03 +08:00
|
|
|
### Resize
|
|
|
|
|
|
|
|
```rust demo
|
|
|
|
view! {
|
|
|
|
<Space vertical=true>
|
|
|
|
<Textarea placeholder=r#"Textarea with resize set to "none""#/>
|
|
|
|
<Textarea placeholder=r#"Textarea with resize set to "vertical""# resize=TextareaResize::Vertical/>
|
|
|
|
<Textarea placeholder=r#"Textarea with resize set to "horizontal""# resize=TextareaResize::Horizontal/>
|
|
|
|
<Textarea placeholder=r#"Textarea with resize set to "both""# resize=TextareaResize::Both/>
|
|
|
|
</Space>
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-06-23 23:33:09 +08:00
|
|
|
### Textarea Props
|
|
|
|
|