Skip to main content

ExpandableCalendar

Expandable calendar component
(code example)

info

This component extends CalendarList props.

NOTE: This component should be wrapped with CalendarProvider component.

API​

initialPosition​

The initial position of the calendar ('open' | 'closed')

Positions

onCalendarToggled​

Handler which gets executed when the calendar is opened or closed

(isOpen: boolean) => void

disablePan​

Whether to disable the pan gesture and disable the opening and closing of the calendar (initialPosition will persist)

boolean

hideKnob​

Whether to hide the knob

boolean

leftArrowImageSource​

The source for the left arrow image

ImageSourcePropType

rightArrowImageSource​

The source for the right arrow image

ImageSourcePropType

allowShadow​

Whether to have shadow/elevation for the calendar

boolean

disableWeekScroll​

Whether to disable the week scroll in closed position

boolean

openThreshold​

The threshold for opening the calendar with the pan gesture

number

closeThreshold​

The threshold for closing the calendar with the pan gesture

number

closeOnDayPress​

Whether to close the calendar on day press

boolean