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

Week

The Week components renders a week, as a row of Day components based on the current Calendar state.

Example

15161718192021

Props

Prop NameTypeIs RequiredDefault ValueDescription
classNamestringoptionalClass name of root element
daysarrayrequiredArray of dates to render
parentMonthobjectrequiredto determine days of weeks, which are outside of current month

Importing

It can be imported as either the base component

import { Week } 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 { Week } 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.