thaw/demo_markdown/docs/calendar/mod.md
2024-02-09 22:47:46 +08:00

17 lines
639 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 | `OptionalProp<MaybeSignal<String>>` | `Default::default()` | Addtional classes for the calendar element. |
| value | `Model<Option<NaiveDate>>` | `Default::default()` | Set the calendar value |