mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 22:39:23 -05:00
1e4832a6d0
* demo: refactor docs * demo: refactor docs * demo: refactor docs * demo: refactor docs
18 lines
634 B
Markdown
18 lines
634 B
Markdown
# Time Picker
|
|
|
|
```rust demo
|
|
use thaw::chrono::prelude::*;
|
|
|
|
let value = create_rw_signal(Some(Local::now().time()));
|
|
|
|
view! {
|
|
<TimePicker value />
|
|
}
|
|
```
|
|
|
|
## TimePicker Props
|
|
|
|
| Name | Type | Default | Description |
|
|
| ----- | ----------------------------- | -------------------- | ---------------------------------------------- |
|
|
| class | `MaybeSignal<String>` | `Default::default()` | Addtional classes for the time picker element. |
|
|
| value | `RwSignal<Option<NaiveTime>>` | `Default::default()` | Set the TimePicker value. |
|