Skip to content
PixiKit

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
NameTypeDefaultDescription
mode"single" | "range""single"`single` picks one day, `range` a start and an end.
valueMiniMonthValueNoneThe selection when controlled: a Date or null, or `{ start, end }` in range mode.
defaultValueMiniMonthValueNoneThe selection when uncontrolled.
onValueChange(value: MiniMonthValue) => voidNoneCalled with the new selection.
monthDateNoneThe month on show when controlled; any day of it.
defaultMonthDateNoneThe month on show at first. Default: the selection, else this month.
onMonthChange(month: Date) => voidNoneCalled with the first day of the month that came into view.
minDateNoneThe earliest day that can be picked.
maxDateNoneThe latest day that can be picked.
disabled(date: Date) => booleanNoneReturn true for a day that cannot be picked.
weekStartnumberNoneThe first day of the week, 0 for Sunday to 6. Default: from the locale, else Monday.
localestring"en-US"The language of the names and dates, as for `Intl`.
months1 | 21Two months show side by side when the container is wide enough.
eventsMiniMonthEvent[][]Events: days that have some get up to three dots.
showAgendabooleanfalseLists the events of the selected day or range beside or below the grid.
showTodaybooleanfalseAdds a Today button.
showWeekNumbersbooleanfalseAdds the ISO week number before each week.
classNamestringNone

Related