Getting StartedStateThemingCompositionDate FrameworksLocalizationAnimatedGroupAnimatedMonthGroupCalendarCalendarProviderClickOutsideDayDayOfWeekHeaderHomeMonthMonthGroupPopperPopperExamplePropsRootWeekWeekHeaderuseCalendarDispatchuseCalendarPropsuseCalendarStateuseDateAPIuseDateInputuseDateRangeInput
Components
Hooks
Popper
Popper
is an optional component that has been provided to help build datepickers which open within an overlay (portal).
The hooks, useDateInput and useDateRange support an optional popper that you must render yourself and then apply the getPopperProps
to.
For further examples of this Popper in use with the use-date-input
hooks, refer to useDateInput and useDateRange.
Otherwise, you can use your own favourite Popper implementation in place of Popper
.
Example
Props
Prop Name | Type | Is Required | Default Value | Description |
---|---|---|---|---|
anchorEl | func or object | optional | Anchor element | |
children | node | optional | Popper content | |
ignoreClickOutsideRefs | array | optional | Array of refs, will not close the Popper, if clicked | |
onClickOutside | func | optional | Callback on click outside | |
onEscapeKey | func | optional | Callback on escape key press | |
open | bool | optional | Open/close popper |