Getting StartedStateThemingCompositionDate FrameworksLocalizationAnimatedGroupAnimatedMonthGroupCalendarCalendarProviderClickOutsideDayDayOfWeekHeaderHomeMonthExamplePropsImportingMonthGroupPopperRootWeekWeekHeaderuseCalendarDispatchuseCalendarPropsuseCalendarStateuseDateAPIuseDateInputuseDateRangeInput
Components
Hooks
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 Name | Type | Is Required | Default Value | Description |
---|---|---|---|---|
className | string | optional | Class name of root element | |
month | object | optional | Month |
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.