Getting StartedStateThemingCompositionDate FrameworksLocalizationAnimatedGroupAnimatedMonthGroupCalendarCalendarProviderClickOutsideDayDayOfWeekHeaderHomeMonthMonthGroupPopperRootWeekWeekHeaderExamplePropsImportinguseCalendarDispatchuseCalendarPropsuseCalendarStateuseDateAPIuseDateInputuseDateRangeInput
Components
Hooks
WeekHeader
The WeekHeader
component renders the days of the week within the month header.
Example
Su
Mo
Tu
We
Th
Fr
Sa
Props
Prop Name | Type | Is Required | Default Value | Description |
---|---|---|---|---|
className | string | optional | Class name of root element |
Importing
It can be imported as either the base component
import { WeekHeader } 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 { WeekHeader } 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.