thaw/demo_markdown/docs/calendar/mod.md
luoxiaozero 3684f5961b
demo: refactor docs (#67)
* demo: refactor docs

* demo: refactor docs

* demo: refactor guide docs

* chore: workflow add listens to the demo_markdown

* demo: refactor mobile docs
2024-01-03 20:52:56 +08:00

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