mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-24 14:49:21 -05:00
18 lines
640 B
Markdown
18 lines
640 B
Markdown
|
# Radio
|
||
|
|
||
|
```rust demo
|
||
|
let value = create_rw_signal(false);
|
||
|
|
||
|
view! {
|
||
|
<Radio value>"Click"</Radio>
|
||
|
}
|
||
|
```
|
||
|
|
||
|
### Radio Props
|
||
|
|
||
|
| Name | Type | Default | Description |
|
||
|
| -------- | --------------------- | -------------------- | ---------------------------------------- |
|
||
|
| class | `MaybeSignal<String>` | `Default::default()` | Addtional classes for the radio element. |
|
||
|
| value | `RwSignal<bool>` | `false` | Checked value. |
|
||
|
| children | `Children` | | Radio's content. |
|