Mini Month
A compact month calendar for picking a day or a range, with event dots, an agenda, a month and year picker and full keyboard support.
pixikit.com/docs/app-ui/data/mini-month
Customize
Mode
Week start
Months
Show agenda
Show today
Show week numbers
Props
18| Name | Type | Default | Description |
|---|---|---|---|
mode | "single" | "range" | "single" | `single` picks one day, `range` a start and an end. |
value | MiniMonthValue | None | The selection when controlled: a Date or null, or `{ start, end }` in range mode. |
defaultValue | MiniMonthValue | None | The selection when uncontrolled. |
onValueChange | (value: MiniMonthValue) => void | None | Called with the new selection. |
month | Date | None | The month on show when controlled; any day of it. |
defaultMonth | Date | None | The month on show at first. Default: the selection, else this month. |
onMonthChange | (month: Date) => void | None | Called with the first day of the month that came into view. |
min | Date | None | The earliest day that can be picked. |
max | Date | None | The latest day that can be picked. |
disabled | (date: Date) => boolean | None | Return true for a day that cannot be picked. |
weekStart | number | None | The first day of the week, 0 for Sunday to 6. Default: from the locale, else Monday. |
locale | string | "en-US" | The language of the names and dates, as for `Intl`. |
months | 1 | 2 | 1 | Two months show side by side when the container is wide enough. |
events | MiniMonthEvent[] | [] | Events: days that have some get up to three dots. |
showAgenda | boolean | false | Lists the events of the selected day or range beside or below the grid. |
showToday | boolean | false | Adds a Today button. |
showWeekNumbers | boolean | false | Adds the ISO week number before each week. |
className | string | None |