thaw/demo_markdown/docs/calendar/mod.md

18 lines
621 B
Markdown
Raw Normal View History

# 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 |