HammerHammer

Month Datepicker

A date picker for selecting a month and year.

Open in v0

Last updated:04/10/2026, 05:17:37

pnpm dlx shadcn add @chaos-design/month-datepicker
npx shadcn@latest add @chaos-design/month-datepicker
yarn dlx shadcn add @chaos-design/month-datepicker
bunx shadcn add @chaos-design/month-datepicker
Open preview in new tab

Installation

npm install @chaos-design/month-datepicker

Usage

import { MonthDatepicker } from "@chaos-design/month-datepicker";

Using with shadcn/ui

  1. Install the dependency
npm install @chaos-design/month-datepicker
  1. Use the component
import { MonthDatepicker } from "@chaos-design/month-datepicker";

export default function Demo() {
  return <MonthDatepicker />;
}

Props

PropTypeDefaultDescription
classNamestring-Custom class name.
classNamesMonthDatepickerClassNames-Custom class names for internal elements.
currentDateDate-Currently selected date.
onMonthSelect(date: Date) => void-Callback on month selection.
localeLocale-Date locale (from date-fns).

MonthDatepickerClassNames

PropTypeDescription
headerstringHeader area.
monthGridstringMonth grid container.
monthButtonstringMonth button.
yearGridstringYear grid container.
yearButtonstringYear button.

On this page