mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-24 14:49:21 -05:00
19 lines
574 B
Markdown
19 lines
574 B
Markdown
|
# Date Picker
|
||
|
|
||
|
```rust demo
|
||
|
use thaw::chrono::prelude::*;
|
||
|
let value = create_rw_signal(Some(Local::now().date_naive()));
|
||
|
|
||
|
view! {
|
||
|
<DatePicker value/>
|
||
|
}
|
||
|
```
|
||
|
|
||
|
### DatePicker Props
|
||
|
|
||
|
| Name | Type | Default | Desciption |
|
||
|
| --- | --- | --- | --- |
|
||
|
| class | `MaybeSignal<String>` | `Default::default()` | Addtional classes for the date picker element. |
|
||
|
| value | `RwSignal<Option<NaiveDate>>` | `Default::default()` | Set the date picker value |
|
||
|
| attr: | `Vec<(&'static str, Attribute)>` | `Default::default()` | The dom attrs of the input element inside the component. |
|