Calendar
A keyboard- and screen-reader-accessible date picker for single-date and range selection.
Show codeHide code
Installation
import { Calendar } from "@makeplane/propel/components/calendar";Usage
import { Calendar } from "@makeplane/propel/components/calendar";
import * as React from "react";
export default function BasicDemo() {
const [selected, setSelected] = React.useState<Date | undefined>(new Date(2025, 0, 24));
return (
<Calendar
mode="single"
defaultMonth={new Date(2025, 0, 1)}
selected={selected}
onSelect={setSelected}
/>
);
}Examples
Range
Show codeHide code
Disabled days
Show codeHide code
Today indicator
The current date is marked with an accent dot below the day number; the dot persists when today is selected. Pin it with the today prop — here it’s set to January 6 for a deterministic grid.
Show codeHide code
API Reference
Calendar forwards react-day-picker’s DayPickerProps — mode, selected, onSelect, month, defaultMonth, disabled, today, and the rest — with className, style, classNames, numberOfMonths, captionLayout, and showWeekNumber omitted: styling is owned by propel’s tokens, and those layout modes have no styled contract.