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