Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA month calendar that shows dated features and lets you jump by month and year.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
import {
CalendarBody,
CalendarDate,
CalendarDatePagination,
CalendarDatePicker,
CalendarHeader,
CalendarItem,
CalendarMonthPicker,
CalendarProvider,
CalendarYearPicker,
} from "@/components/ui/calendar-month-view"<CalendarProvider>
<CalendarDate>
<CalendarDatePicker>
<CalendarMonthPicker />
<CalendarYearPicker start={2025} end={2027} />
</CalendarDatePicker>
<CalendarDatePagination />
</CalendarDate>
<CalendarHeader />
<CalendarBody features={features}>
{({ feature }) => <CalendarItem feature={feature} key={feature.id} />}
</CalendarBody>
</CalendarProvider>| Export | Description |
|---|---|
useCalendarMonth | A part of the component; compose it with the others as shown in the usage example. |
useCalendarYear | A part of the component; compose it with the others as shown in the usage example. |
monthsForLocale | A part of the component; compose it with the others as shown in the usage example. |
daysForLocale | A part of the component; compose it with the others as shown in the usage example. |
CalendarBody | A part of the component; compose it with the others as shown in the usage example. |
CalendarDatePicker | A part of the component; compose it with the others as shown in the usage example. |
CalendarMonthPicker | A part of the component; compose it with the others as shown in the usage example. |
CalendarYearPicker | A part of the component; compose it with the others as shown in the usage example. |
CalendarDatePagination | A part of the component; compose it with the others as shown in the usage example. |
CalendarDate | A part of the component; compose it with the others as shown in the usage example. |
CalendarHeader | A part of the component; compose it with the others as shown in the usage example. |
CalendarItem | A part of the component; compose it with the others as shown in the usage example. |
CalendarProvider | A part of the component; compose it with the others as shown in the usage example. |
The props are typed, and each part accepts the usual attributes of the element it renders.
export type CalendarBodyProps = {
features: Feature[]
children: (props: { feature: Feature }) => ReactNode
}
export type CalendarDatePickerProps = {
className?: string
children: ReactNode
}
export type CalendarMonthPickerProps = {
className?: string
}
export type CalendarYearPickerProps = {
className?: string
start: number
end: number
}
export type CalendarDatePaginationProps = {
className?: string
}
export type CalendarDateProps = {
children: ReactNode
}
export type CalendarHeaderProps = {
className?: string
}
export type CalendarItemProps = {
feature: Feature
className?: string
}
export type CalendarProviderProps = {
locale?: Intl.LocalesArgument
startDay?: number
children: ReactNode
className?: string
}Month and year pickers are labelled comboboxes; the previous and next month buttons are labelled. Each calendar owns its month and year, so several can sit on one page. Every item carries its name as text, with the status colour as an extra cue.
Based on Kibo UI (MIT), adapted for tealmac UI. See the third-party notices.