Month Datepicker
A date picker for selecting a month and year.
Last updated:04/10/2026, 05:17:37
npm install @chaos-design/month-datepicker
import { MonthDatepicker } from "@chaos-design/month-datepicker";
- Install the dependency
npm install @chaos-design/month-datepicker
- Use the component
import { MonthDatepicker } from "@chaos-design/month-datepicker";
export default function Demo() {
return <MonthDatepicker />;
}
| Prop | Type | Default | Description |
|---|
| className | string | - | Custom class name. |
| classNames | MonthDatepickerClassNames | - | Custom class names for internal elements. |
| currentDate | Date | - | Currently selected date. |
| onMonthSelect | (date: Date) => void | - | Callback on month selection. |
| locale | Locale | - | Date locale (from date-fns). |
| Prop | Type | Description |
|---|
| header | string | Header area. |
| monthGrid | string | Month grid container. |
| monthButton | string | Month button. |
| yearGrid | string | Year grid container. |
| yearButton | string | Year button. |