mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-24 06:49:21 -05:00
17 lines
615 B
Markdown
17 lines
615 B
Markdown
# Calendar
|
|
|
|
```rust demo
|
|
use 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 |
|