mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 22:39:23 -05:00
17 lines
519 B
Markdown
17 lines
519 B
Markdown
|
# Switch
|
||
|
|
||
|
```rust demo
|
||
|
let value = create_rw_signal(false);
|
||
|
|
||
|
view! {
|
||
|
<Switch value />
|
||
|
}
|
||
|
```
|
||
|
|
||
|
### Switch Props
|
||
|
|
||
|
| Name | Type | Default | Description |
|
||
|
| ----- | --------------------- | -------------------- | ----------------------------------------- |
|
||
|
| class | `MaybeSignal<String>` | `Default::default()` | Addtional classes for the switch element. |
|
||
|
| value | `RwSignal<bool>` | `Default::default()` | Switch's value. |
|