RangeCalendar uses @internationalized/date for all date manipulations (CalendarDate, calendar systems, time zones, locale-aware formatting). For full context on the date types and helpers exposed through this component's props and callbacks, read the @internationalized/date docs alongside this page.
import { RangeCalendar } from 'heroui-native-pro' ;
< RangeCalendar >
< RangeCalendar.Header >
< RangeCalendar.Heading />
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
</ RangeCalendar >
< RangeCalendar >
< RangeCalendar.Header >
< RangeCalendar.YearPickerTrigger >
< RangeCalendar.YearPickerTriggerHeading />
< RangeCalendar.YearPickerTriggerIndicator />
</ RangeCalendar.YearPickerTrigger >
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
< RangeCalendar.YearPickerGrid >
< RangeCalendar.YearPickerGridBody >
< RangeCalendar.YearPickerCell />
</ RangeCalendar.YearPickerGridBody >
</ RangeCalendar.YearPickerGrid >
</ RangeCalendar >
RangeCalendar : Root container that manages date range selection state, locale, and animation settings. Supports controlled and uncontrolled modes with min/max constraints and date unavailability filtering.
RangeCalendar.Header : Toolbar row for navigation controls and the month/year title.
RangeCalendar.Heading : Month/year label text. The primitive computes the heading string automatically when children are omitted.
RangeCalendar.NavButton : Previous or next month navigation button. Renders a default chevron icon using the theme accent color; override via iconProps or pass custom children.
RangeCalendar.Grid : Month grid container that provides internal grid context to the header and body.
RangeCalendar.GridHeader : Weekday labels row. Its child is the header cell template, rendered once per weekday; without children it renders <RangeCalendar.HeaderCell />.
RangeCalendar.GridBody : Day cells matrix. Its child is the cell template, rendered once per day; without children it renders <RangeCalendar.Cell />.
RangeCalendar.HeaderCell : Weekday header cell. Shows the label of its weekday; stringifiable children are wrapped in HeaderCellLabel.
RangeCalendar.HeaderCellLabel : Text slot for a weekday header cell label.
RangeCalendar.Cell : Selectable day cell. Draws the pressable and the inner body (selection, today and press states) around its children, which default to <RangeCalendar.CellLabel />. Range start and end get the accent fill; days inside the range get the range strip.
RangeCalendar.CellLabel : Day number of the enclosing cell.
RangeCalendar.CellIndicator : Dot marker under a day (e.g. for events). Selected cells give it the selected color.
RangeCalendar.YearPickerTrigger : Pressable trigger that replaces Heading to toggle the year picker overlay.
RangeCalendar.YearPickerTriggerHeading : Month/year label text inside the year picker trigger.
RangeCalendar.YearPickerTriggerIndicator : Animated chevron icon indicating the year picker open state.
RangeCalendar.YearPickerGrid : Overlay container positioned over the month grid when the year picker is open.
RangeCalendar.YearPickerGridBody : Scrollable list of years. Its child is the year cell template; without children it renders <RangeCalendar.YearPickerCell />.
RangeCalendar.YearPickerCell : Pressable year cell that selects its year and closes the picker.
The RangeCalendar uses the same compound structure as Calendar. Users select a start and end date by tapping two different days.
< RangeCalendar
accessibilityLabel = "Trip dates"
defaultValue ={{
start: parseDate ( '2026-04-01' ),
end: parseDate ( '2026-04-07' ),
}}
>
< RangeCalendar.Header >
< RangeCalendar.Heading />
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
</ RangeCalendar >
Use value and onChange to control the selected range externally.
const [range, setRange] = useState ({
start: parseDate ( '2026-04-01' ),
end: parseDate ( '2026-04-07' ),
});
< RangeCalendar value ={range} onChange ={setRange}>
< RangeCalendar.Header >
< RangeCalendar.Heading />
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
</ RangeCalendar >;
Restrict navigation and selection to a date range using minValue and maxValue.
const now = today ( getLocalTimeZone ());
< RangeCalendar minValue ={now} maxValue ={now. add ({ months: 2 })}>
< RangeCalendar.Header >
< RangeCalendar.Heading />
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
</ RangeCalendar >;
Enable allowsNonContiguousRanges to allow ranges that span across unavailable dates.
const isDateUnavailable = (date: DateValue ) => {
return blockedRanges. some (
([start, end]) => date. compare (start) >= 0 && date. compare (end) <= 0
);
};
< RangeCalendar allowsNonContiguousRanges isDateUnavailable ={isDateUnavailable}>
< RangeCalendar.Header >
< RangeCalendar.Heading />
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
</ RangeCalendar >;
Add a year picker overlay by replacing Heading with YearPickerTrigger and adding a YearPickerGrid inside the root.
< RangeCalendar >
< RangeCalendar.Header >
< RangeCalendar.YearPickerTrigger >
< RangeCalendar.YearPickerTriggerHeading />
< RangeCalendar.YearPickerTriggerIndicator />
</ RangeCalendar.YearPickerTrigger >
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
< RangeCalendar.YearPickerGrid >
< RangeCalendar.YearPickerGridBody >
< RangeCalendar.YearPickerCell />
</ RangeCalendar.YearPickerGridBody >
</ RangeCalendar.YearPickerGrid >
</ RangeCalendar >
Disable the entire calendar and all navigation controls.
< RangeCalendar isDisabled >
< RangeCalendar.Header >
< RangeCalendar.Heading />
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
</ RangeCalendar >
Put your own content inside RangeCalendar.Cell. useCalendarCell() returns the state of the cell it is rendered in, so a small component can decide per day whether to show a dot.
import { RangeCalendar, useCalendarCell } from 'heroui-native-pro' ;
const datesWithEvents = [ 3 , 7 , 12 , 15 , 21 , 28 ];
function EventIndicator () {
const { date } = useCalendarCell ();
return datesWithEvents. includes (date.day) ? (
< RangeCalendar.CellIndicator />
) : null ;
}
< RangeCalendar.GridBody >
< RangeCalendar.Cell >
< RangeCalendar.CellLabel />
< EventIndicator />
</ RangeCalendar.Cell >
</ RangeCalendar.GridBody >;
GridHeader, GridBody and YearPickerGridBody take templates: you write the element once and the component renders it for every weekday, day or year. Each copy knows which day it shows, and parts inside it read that day from context, so there is nothing to pass down.
<RangeCalendar.GridBody /> renders the default cell for every day. So does <RangeCalendar.GridBody><RangeCalendar.Cell /></RangeCalendar.GridBody>.
Put content inside RangeCalendar.Cell to change what a day shows. Your own components read the day with useCalendarCell().
Styling (className, data-* selectors) works on every part inside the cell, because each part reads the cell state itself.
Cells re-render only when their own state changes. When the component that holds the calendar re-renders, it creates a new template element; the calendar compares it with the previous one (same component types, props equal by Object.is, nested elements compared the same way) and keeps the cells as they are when nothing changed. A template with an inline function or object prop (for example onLongPress={() => ...} or style={{ ... }}) is different on every render and re-renders every cell once: define such values outside the component or with useCallback / useMemo.
The first tap sets the start of a new range. The current value stays as it is (no onChange(null)); the highlight shows the new start.
The second tap sets the end and calls onChange once with the full range.
Selecting never moves the page. You can tap a start, go to the next month, and tap an end: the calendar stays on the month you ended on.
A value that comes from outside (a new value prop or state.setValue) moves the page only when its start is not visible.
Each calendar keeps its state in one store. Parts read only what they draw:
Selecting a day re-renders the cells whose state changed (the days that enter or leave the highlight) and nothing else: not the root, header, heading, nav buttons, grid or grid body. Only those days have their state recomputed, however many cells are mounted.
Previous / Next re-render the heading, the nav buttons, the grid body and the cells of the new month, in one commit. Cells are keyed by position, so they update in place instead of mounting again. The root and the weekday row do not re-render.
The days of each month are computed once and cached, and so are the date formatters.
useRangeCalendar() returns the full state object; the component that calls it re-renders on every change. The root does not, so only callers of useRangeCalendar() pay for it. isDateUnavailable results are cached per day and computed again when you pass a new function.
import {
parseDate,
today,
getLocalTimeZone,
type DateValue,
} from '@internationalized/date' ;
import { RangeCalendar } from 'heroui-native-pro' ;
import { useState } from 'react' ;
import { View } from 'react-native' ;
export default function RangeCalendarExample () {
const now = today ( getLocalTimeZone ());
const blockedRanges = [
[now. add ({ days: 2 }), now. add ({ days: 5 })],
[now. add ({ days: 12 }), now. add ({ days: 13 })],
] as const ;
const isDateUnavailable = (date: DateValue ) => {
return blockedRanges. some (
([start, end]) => date. compare (start) >= 0 && date. compare (end) <= 0
);
};
return (
< View className = "flex-1 justify-center px-5" >
< RangeCalendar
allowsNonContiguousRanges
accessibilityLabel = "Trip dates"
isDateUnavailable ={isDateUnavailable}
defaultValue ={{
start: parseDate ( '2026-04-01' ),
end: parseDate ( '2026-04-07' ),
}}
>
< RangeCalendar.Header >
< RangeCalendar.Heading />
< RangeCalendar.NavButton slot = "previous" />
< RangeCalendar.NavButton slot = "next" />
</ RangeCalendar.Header >
< RangeCalendar.Grid >
< RangeCalendar.GridHeader >
< RangeCalendar.HeaderCell />
</ RangeCalendar.GridHeader >
< RangeCalendar.GridBody >
< RangeCalendar.Cell />
</ RangeCalendar.GridBody >
</ RangeCalendar.Grid >
</ RangeCalendar >
</ View >
);
}
prop type default description childrenReact.ReactNode- Calendar parts valueRangeValue<DateValue> | null- Controlled selected date range defaultValueRangeValue<DateValue> | null- Default selected date range for uncontrolled usage minValueDateValue | null- Minimum selectable date; disables earlier dates and navigation maxValueDateValue | null- Maximum selectable date; disables later dates and navigation isDateUnavailable(date: DateValue) => boolean- Callback to mark specific dates as unavailable allowsNonContiguousRangesboolean- Allow ranges that span across unavailable dates isDisabledbooleanfalseWhether the entire calendar is disabled isReadOnlybooleanfalseWhether the calendar value is immutable isInvalidboolean- Whether the current selection is invalid firstDayOfWeek'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat'- Override the first day of the week localestring- BCP 47 locale; defaults to the environment locale isYearPickerOpenboolean- Controlled open state for the year picker overlay defaultYearPickerOpenbooleanfalseInitial open state for the year picker in uncontrolled mode classNamestring- Additional CSS classes for the root container animationAnimationRootDisableAll- Animation configuration for the calendar subtree onChange(value: RangeValue<MappedDateValue<DateValue>>) => void- Handler called when the selected range changes onYearPickerOpenChange(isOpen: boolean) => void- Handler called when the year picker open state changes ...ViewPropsViewProps- All standard React Native View props are supported
property type description startDateValueThe start date of the range endDateValueThe end date of the range
Animation configuration for the RangeCalendar root. Can be:
"disable-all": Disable all animations including children (cascades down)
undefined: Use default animations
prop type default description childrenReact.ReactNode- Header content (Heading, NavButtons, etc.) classNamestring- Additional CSS classes for the header row container ...ViewPropsViewProps- All standard React Native View props are supported
prop type default description childrenReact.ReactNode- Custom heading text; auto-computed month/year when omitted classNamestring- Additional CSS classes for the heading text ...TextPropsTextProps- All standard React Native Text props are supported
prop type default description childrenReact.ReactNode- Custom icon content; replaces the default chevron when provided slot'previous' | 'next'- Navigation direction; determines which chevron icon is rendered isDisabledboolean- Merged with calendar isDisabled and range boundary state classNamestring- Additional CSS classes for the pressable iconPropsRangeCalendarNavButtonIconProps- Overrides for the built-in chevron; ignored with custom children ...PressablePropsPressableProps- All standard React Native Pressable props are supported
prop type default description sizenumber18Icon size in logical pixels colorstringTheme accent Icon stroke/fill color
prop type default description childrenReact.ReactNode- Grid content (GridHeader, GridBody) offsetDateDuration- Offset from the visible range start for multi-month grids weekdayStyle'narrow' | 'short' | 'long'- Weekday label format classNamestring- Additional CSS classes for the grid container ...ViewPropsViewProps- All standard React Native View props are supported
prop type default description childrenReact.ReactNode<RangeCalendar.HeaderCell />Header cell template, rendered once per weekday classNamestring- Additional CSS classes for the weekday row wrapper ...ViewPropsViewProps- All standard React Native View props are supported
prop type default description childrenReact.ReactNode<RangeCalendar.Cell />Cell template, rendered once per day of the month (see Templates) classNamestring- Additional CSS classes for the grid body ...ViewPropsViewProps- All standard React Native View props are supported
prop type default description childrenReact.ReactNode- Custom cell content; stringifiable children are wrapped in HeaderCellLabel classNamestring- Additional CSS classes for the header cell container ...ViewPropsViewProps- All standard React Native View props are supported
Without children, the header cell shows the label of its weekday in the grid's weekdayStyle.
prop type default description childrenReact.ReactNode- Label text; defaults to the label of the weekday classNamestring- Additional CSS classes for the label text ...TextPropsTextProps- All standard React Native Text props are supported
prop type default description childrenReact.ReactNode<RangeCalendar.CellLabel />Content inside the cell body isDisabledboolean- Merged with calendar isDisabled and cell-specific disabled state classNamestring- Additional CSS classes for the day cell pressable classNames{ body?: string }- Additional CSS classes for the inner body (selection, today, press states) styles{ body?: ViewStyle }- Styles for the inner body animationCalendarCellBodyAnimation- Press scale of the inner body isAnimatedStyleActivebooleantrueWhether the body's animated scale is applied; set false for custom logic ...PressablePropsPressableProps- All standard React Native Pressable props are supported
The cell reads its day from the GridBody template. The transform (scale) of the body is animated and cannot be set with classNames.body.
The cell, its body, CellLabel and CellIndicator all carry these attributes, so data-[selected=true]: style selectors work on each of them.
attribute values description data-todaybooleanWhether the date is today data-outside-monthbooleanWhether the date is outside the visible month data-unavailablebooleanWhether the date is unavailable data-disabledbooleanWhether the date is disabled data-focusedbooleanWhether the date is focused data-invalidbooleanWhether the date is invalid data-selectedbooleanWhether the date is selected data-pressedbooleanWhether the cell is pressed data-range-startbooleanFirst day of a range (range calendar only) data-range-endbooleanLast day of a range (range calendar only) data-range-filledbooleanRange spans multiple days (range calendar only) data-range-middlebooleanInside the range, not start/end (range only) data-range-middle-row-startbooleanRange middle at row start (range calendar only) data-range-middle-row-endbooleanRange middle at row end (range calendar only) data-disabled-not-outside-monthbooleanDisabled but within the visible month
Press feedback of the cell body (animation on RangeCalendar.Cell). Can be:
false or "disabled": Disable press animation
undefined: Use default animation
object: Custom animation configuration
prop type default description scale.value[number, number][1, 0.9]Scale values [unpressed, pressed] scale.timingConfigWithTimingConfig{ duration: 120 }Animation timing configuration
prop type default description childrenReact.ReactNode- Label text; defaults to the day number of the cell classNamestring- Additional CSS classes for the label text ...TextPropsTextProps- All standard React Native Text props are supported
prop type default description classNamestring- Additional CSS classes for the indicator dot container ...ViewPropsViewProps- All standard React Native View props are supported
prop type default description childrenReact.ReactNode- Trigger content, usually YearPickerTriggerHeading and YearPickerTriggerIndicator yearSelectorLabel(monthYear: string) => string(monthYear) => `${monthYear}, year selector`Accessibility label of the trigger, from the month and year it shows (in the calendar's locale). A plain accessibilityLabel takes precedence ...PressablePropsPressableProps- All standard React Native Pressable props are supported
Custom content inside the trigger reads its state with useYearPickerTrigger().
prop type default description childrenReact.ReactNode- Heading text; the visible month and year by default ...TextPropsTextProps- All standard React Native Text props are supported
prop type default description childrenReact.ReactNode- Custom indicator content; replaces the chevron iconProps{ size?: number; color?: string }- Overrides for the default chevron icon isAnimatedStyleActivebooleantrueWhether animated rotation styles are applied animationYearPickerIndicatorAnimation- Rotation animation configuration ...ViewPropsViewProps- All standard React Native View props are supported
Animation configuration for the year picker trigger chevron rotation. Can be:
false or "disabled": Disable rotation animation
undefined: Use default animation
object: Custom animation configuration
prop type default description rotation.value[number, number][0, 90]Rotation degrees [closed, open] rotation.springConfigWithSpringConfigDefault spring Spring configuration for the rotation
prop type default description childrenReact.ReactNode- Grid content (YearPickerGridBody) isAnimatedStyleActivebooleantrueWhether animated opacity styles are applied animationYearPickerGridAnimation- Opacity animation configuration ...ViewPropsViewProps- All standard React Native View props are supported
Animation configuration for the year picker grid overlay. Can be:
false or "disabled": Disable opacity animation
undefined: Use default animation
object: Custom animation configuration
prop type default description opacity.value[number, number][0, 1]Opacity values [closed, open] opacity.timingConfigWithTimingConfig{ duration: 200 }Timing configuration for the opacity
prop type default description childrenReact.ReactNode<RangeCalendar.YearPickerCell />Year cell template, rendered once per year cellHeightnumber- Height of each year cell in pixels ...FlatListPropsFlatListProps<number>- FlatList props except data, renderItem, keyExtractor, numColumns, and columnWrapperStyle
prop type default description childrenReact.ReactNode- Custom cell content; the formatted year by default ...PressablePropsPressableProps- All standard React Native Pressable props are supported
The cell reads its year from the YearPickerGridBody template; custom content reads it with useYearPickerCell().
Hook to access the range calendar state context. Must be used within a RangeCalendar component.
import { useRangeCalendar } from 'heroui-native-pro' ;
const state = useRangeCalendar ();
property type description valueRangeValue<DateValue> | nullCurrently selected date range setValue(value: RangeValue<DateValue> | null) => voidSet the selected date range highlightedRangeRangeValue<CalendarDate> | nullThe currently highlighted range (committed or preview) anchorDateCalendarDate | nullAnchor date the user clicked to begin range selection setAnchorDate(date: CalendarDate | null) => voidSet the anchor date isDraggingbooleanWhether the user is currently dragging over the calendar setDragging(isDragging: boolean) => voidSet the dragging state highlightDate(date: CalendarDate) => voidHighlight a date during range selection clearSelection() => voidClear the current selection visibleRangeRangeValue<CalendarDate>The date range currently visible in the calendar focusedDateCalendarDateCurrently focused date setFocusedDate(value: CalendarDate) => voidSet the focused date isDisabledbooleanWhether the calendar is disabled isReadOnlybooleanWhether the calendar is read-only isValueInvalidbooleanWhether the current value is invalid timeZonestringTime zone of displayed dates minValueDateValue | null | undefinedMinimum allowed date maxValueDateValue | null | undefinedMaximum allowed date focusNextPage() => voidNavigate to the next month focusPreviousPage() => voidNavigate to the previous month selectFocusedDate() => voidSelect the currently focused date selectDate(date: CalendarDate) => voidSelect a specific date isSelected(date: CalendarDate) => booleanCheck if a date is selected isInvalid(date: CalendarDate) => booleanCheck if a date is invalid isCellDisabled(date: CalendarDate) => booleanCheck if a date cell is disabled isCellUnavailable(date: CalendarDate) => booleanCheck if a date cell is unavailable isCellFocused(date: CalendarDate) => booleanCheck if a date cell is focused getDatesInWeek(weekIndex: number, startDate?: CalendarDate) => Array<CalendarDate | null>Get dates for a week row
Returns the state of the day cell it is rendered in. Use it in custom content inside RangeCalendar.Cell. The component re-renders when that cell's state changes, not for other days.
import { useCalendarCell } from 'heroui-native-pro' ;
function DayNote () {
const { date, isSelected } = useCalendarCell ();
return isSelected ? < Text >{date. toString ()}</ Text > : null ;
}
property type description dateCalendarDateThe date of the cell formattedDatestringLocale-formatted day number isSelectedbooleanWhether this date is selected isTodaybooleanWhether this date is today isDisabledbooleanWhether this date is disabled isUnavailablebooleanWhether isDateUnavailable returns true for this date isOutsideMonthbooleanWhether this date is outside the month of its grid isFocusedbooleanWhether this date is focused isInvalidbooleanWhether this date is invalid per minValue/maxValue isPressedbooleanWhether the cell is pressed isRangeStartbooleanFirst day of the highlighted range (range selection only) isRangeEndbooleanLast day of the highlighted range (range selection only) isRangeFilledbooleanIn a range that spans more than one day (range selection only) isRangeMiddlebooleanStrictly inside the range, not start or end (range selection only) isRangeMiddleRowStartbooleanRange middle cell at the start of a row (range selection only) isRangeMiddleRowEndbooleanRange middle cell at the end of a row (range selection only)
Returns the weekday of the header cell it is rendered in, for custom content inside RangeCalendar.HeaderCell.
property type description daystringWeekday label in the grid's weekdayStyle indexnumberColumn of the weekday, from 0 (first day of the week)
Returns the state of the year cell it is rendered in, for custom content inside RangeCalendar.YearPickerCell.
property type description yearnumberThe year number formattedYearstringLocale-formatted year string isSelectedbooleanWhether this year is the visible year isCurrentYearbooleanWhether this year is the current year isOpenbooleanWhether the year picker is open selectYear() => voidSelect this year and close the picker
Returns the state of the year picker trigger, for custom content inside RangeCalendar.YearPickerTrigger.
property type description isOpenbooleanWhether the year picker is open monthYearstringFormatted month and year toggle() => voidToggle the year picker open state