mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 22:39:23 -05:00
18 lines
621 B
Markdown
18 lines
621 B
Markdown
|
# Calendar
|
||
|
|
||
|
```rust demo
|
||
|
use thaw::chrono::prelude::*;
|
||
|
let value = create_rw_signal(Some(Local::now().date_naive()));
|
||
|
|
||
|
view! {
|
||
|
<Calendar value />
|
||
|
}
|
||
|
```
|
||
|
|
||
|
### Calendar Props
|
||
|
|
||
|
| Name | Type | Default | Desciption |
|
||
|
| ----- | ----------------------------- | -------------------- | ------------------------------------------- |
|
||
|
| class | `MaybeSignal<String>` | `Default::default()` | Addtional classes for the calendar element. |
|
||
|
| value | `RwSignal<Option<NaiveDate>>` | `Default::default()` | Set the calendar value |
|