use-date-input - Build Your Own Date Picker
Getting StartedStateThemingCompositionDate FrameworksLocalization
Components
Hooks
AnimatedGroupAnimatedMonthGroupCalendarCalendarProviderClickOutsideDayDayOfWeekHeaderHomeMonthExamplePropsImportingMonthGroupPopperRootWeekWeekHeaderuseCalendarDispatchuseCalendarPropsuseCalendarStateuseDateAPIuseDateInputuseDateRangeInput

Month

The Month components renders a calendar month.

In the default implementation, MonthGroup is the parent of Month.

Example

June
Su
Mo
Tu
We
Th
Fr
Sa
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

Props

Prop NameTypeIs RequiredDefault ValueDescription
classNamestringoptionalClass name of root element
monthobjectoptionalMonth

Importing

It can be imported as either the base component

import { Month } from "@use-date-input/core";

or as an overridable component that can be replaced through the components prop in CalendarProvider.
Refer to How to replace UI components.

import { CustomisableMonth } from "@use-date-input/core";

If providing your own component, it can be useful to import the base component and use it within your composition.