A single-date calendar for selecting dates with month navigation, locale support, and customizable day cells.
Calendaruses@internationalized/datefor 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/datedocs alongside this page.
import { Calendar } from 'heroui-native-pro';<Calendar>
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
</Calendar><Calendar>
<Calendar.Header>
<Calendar.YearPickerTrigger>
<Calendar.YearPickerTriggerHeading />
<Calendar.YearPickerTriggerIndicator />
</Calendar.YearPickerTrigger>
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
<Calendar.YearPickerGrid>
<Calendar.YearPickerGridBody>
<Calendar.YearPickerCell />
</Calendar.YearPickerGridBody>
</Calendar.YearPickerGrid>
</Calendar>iconProps or pass custom children.<Calendar.HeaderCell />.<Calendar.Cell />.HeaderCellLabel.<Calendar.CellLabel />.Heading to toggle the year picker overlay.<Calendar.YearPickerCell />.The Calendar component uses compound parts. GridHeader and GridBody render their child once per weekday and once per day.
<Calendar accessibilityLabel="Event date">
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>Set an initial selected date with defaultValue using @internationalized/date.
<Calendar defaultValue={parseDate('2026-06-19')}>
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>Use value and onChange to control the selected date externally.
const [date, setDate] = useState(today(getLocalTimeZone()));
<Calendar value={date} onChange={setDate}>
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>;Restrict navigation and selection to a date range using minValue and maxValue.
const now = today(getLocalTimeZone());
<Calendar minValue={now} maxValue={now.add({ months: 2 })}>
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>;Mark specific dates as unavailable using the isDateUnavailable callback.
const isDateUnavailable = (date: DateValue) => isWeekend(date, 'en-US');
<Calendar isDateUnavailable={isDateUnavailable}>
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>;Put your own content inside Calendar.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 { Calendar, useCalendarCell } from 'heroui-native-pro';
const datesWithEvents = [3, 7, 12, 15, 21, 28];
function EventIndicator() {
const { date } = useCalendarCell();
return datesWithEvents.includes(date.day) ? <Calendar.CellIndicator /> : null;
}
<Calendar.GridBody>
<Calendar.Cell>
<Calendar.CellLabel />
<EventIndicator />
</Calendar.Cell>
</Calendar.GridBody>;Pass a BCP 47 locale string to render the calendar in a different language and calendar system.
<Calendar locale="hi-IN-u-ca-indian">
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>Disable the entire calendar and all navigation controls.
<Calendar isDisabled>
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>Add a year picker overlay by replacing Heading with YearPickerTrigger and adding a YearPickerGrid inside the root.
<Calendar>
<Calendar.Header>
<Calendar.YearPickerTrigger>
<Calendar.YearPickerTriggerHeading />
<Calendar.YearPickerTriggerIndicator />
</Calendar.YearPickerTrigger>
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell />
</Calendar.GridBody>
</Calendar.Grid>
<Calendar.YearPickerGrid>
<Calendar.YearPickerGridBody>
<Calendar.YearPickerCell />
</Calendar.YearPickerGridBody>
</Calendar.YearPickerGrid>
</Calendar>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.
<Calendar.GridBody /> renders the default cell for every day. So does <Calendar.GridBody><Calendar.Cell /></Calendar.GridBody>.Calendar.Cell to change what a day shows. Your own components read the day with useCalendarCell().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.
Each calendar keeps its state in one store. Parts read only what they draw:
useCalendar() returns the full state object; the component that calls it re-renders on every change. The root does not, so only callers of useCalendar() pay for it. isDateUnavailable results are cached per day and computed again when you pass a new function.
import {
getLocalTimeZone,
isToday,
parseDate,
today,
type DateValue,
} from '@internationalized/date';
import { Calendar, useCalendarCell } from 'heroui-native-pro';
import { useState } from 'react';
import { View } from 'react-native';
const datesWithEvents = [3, 7, 12, 15, 21, 28];
function EventIndicator() {
const { date } = useCalendarCell();
const hasEvents =
isToday(date, getLocalTimeZone()) || datesWithEvents.includes(date.day);
return hasEvents ? <Calendar.CellIndicator /> : null;
}
export default function CalendarExample() {
const [date, setDate] = useState<DateValue>(parseDate('2026-06-19'));
return (
<View className="flex-1 justify-center px-5">
<Calendar value={date} onChange={setDate} accessibilityLabel="Event date">
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell>
<Calendar.CellLabel />
<EventIndicator />
</Calendar.Cell>
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>
</View>
);
}| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Calendar parts |
value | DateValue | null | - | Controlled selected date |
defaultValue | DateValue | null | - | Default selected date for uncontrolled usage |
minValue | DateValue | null | - | Minimum selectable date; disables earlier dates and navigation |
maxValue | DateValue | null | - | Maximum selectable date; disables later dates and navigation |
isDateUnavailable | (date: DateValue) => boolean | - | Callback to mark specific dates as unavailable |
isDisabled | boolean | false | Whether the entire calendar is disabled |
isReadOnly | boolean | false | Whether the calendar value is immutable |
isInvalid | boolean | - | Whether the current selection is invalid |
firstDayOfWeek | 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | - | Override the first day of the week |
locale | string | - | BCP 47 locale; defaults to the environment locale |
isYearPickerOpen | boolean | - | Controlled open state for the year picker overlay |
defaultYearPickerOpen | boolean | false | Initial open state for the year picker in uncontrolled mode |
className | string | - | Additional CSS classes for the root container |
animation | AnimationRootDisableAll | - | Animation configuration for the calendar subtree |
onChange | (value: MappedDateValue<DateValue>) => void | - | Handler called when the selected date changes |
onYearPickerOpenChange | (isOpen: boolean) => void | - | Handler called when the year picker open state changes |
...ViewProps | ViewProps | - | All standard React Native View props are supported |
Animation configuration for the Calendar root. Can be:
"disable-all": Disable all animations including children (cascades down)undefined: Use default animations| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Header content (Heading, NavButtons, etc.) |
className | string | - | Additional CSS classes for the header row container |
...ViewProps | ViewProps | - | All standard React Native View props are supported |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Custom heading text; auto-computed month/year when omitted |
className | string | - | Additional CSS classes for the heading text |
...TextProps | TextProps | - | All standard React Native Text props are supported |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Custom icon content; replaces the default chevron when provided |
slot | 'previous' | 'next' | - | Navigation direction; determines which chevron icon is rendered |
isDisabled | boolean | - | Merged with calendar isDisabled and range boundary state |
className | string | - | Additional CSS classes for the pressable |
iconProps | CalendarNavButtonIconProps | - | Overrides for the built-in chevron; ignored with custom children |
...PressableProps | PressableProps | - | All standard React Native Pressable props are supported |
| prop | type | default | description |
|---|---|---|---|
size | number | 18 | Icon size in logical pixels |
color | string | Theme accent | Icon stroke/fill color |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Grid content (GridHeader, GridBody) |
offset | DateDuration | - | Offset from the visible range start for multi-month grids |
weekdayStyle | 'narrow' | 'short' | 'long' | - | Weekday label format |
className | string | - | Additional CSS classes for the grid container |
...ViewProps | ViewProps | - | All standard React Native View props are supported |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | <Calendar.HeaderCell /> | Header cell template, rendered once per weekday |
className | string | - | Additional CSS classes for the weekday row wrapper |
...ViewProps | ViewProps | - | All standard React Native View props are supported |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | <Calendar.Cell /> | Cell template, rendered once per day of the month (see Templates) |
className | string | - | Additional CSS classes for the grid body |
...ViewProps | ViewProps | - | All standard React Native View props are supported |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Custom cell content; stringifiable children are wrapped in HeaderCellLabel |
className | string | - | Additional CSS classes for the header cell container |
...ViewProps | ViewProps | - | 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 |
|---|---|---|---|
children | React.ReactNode | - | Label text; defaults to the label of the weekday |
className | string | - | Additional CSS classes for the label text |
...TextProps | TextProps | - | All standard React Native Text props are supported |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | <Calendar.CellLabel /> | Content inside the cell body |
isDisabled | boolean | - | Merged with calendar isDisabled and cell-specific disabled state |
className | string | - | 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 |
animation | CalendarCellBodyAnimation | - | Press scale of the inner body |
isAnimatedStyleActive | boolean | true | Whether the body's animated scale is applied; set false for custom logic |
...PressableProps | PressableProps | - | 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-today | boolean | Whether the date is today |
data-outside-month | boolean | Whether the date is outside the visible month |
data-unavailable | boolean | Whether the date is unavailable |
data-disabled | boolean | Whether the date is disabled |
data-focused | boolean | Whether the date is focused |
data-invalid | boolean | Whether the date is invalid |
data-selected | boolean | Whether the date is selected |
data-pressed | boolean | Whether the cell is pressed |
data-range-start | boolean | First day of a range (range calendar only) |
data-range-end | boolean | Last day of a range (range calendar only) |
data-range-filled | boolean | Range spans multiple days (range calendar only) |
data-range-middle | boolean | Inside the range, not start/end (range only) |
data-range-middle-row-start | boolean | Range middle at row start (range calendar only) |
data-range-middle-row-end | boolean | Range middle at row end (range calendar only) |
data-disabled-not-outside-month | boolean | Disabled but within the visible month |
Press feedback of the cell body (animation on Calendar.Cell). Can be:
false or "disabled": Disable press animationundefined: Use default animationobject: Custom animation configuration| prop | type | default | description |
|---|---|---|---|
scale.value | [number, number] | [1, 0.9] | Scale values [unpressed, pressed] |
scale.timingConfig | WithTimingConfig | { duration: 120 } | Animation timing configuration |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Label text; defaults to the day number of the cell |
className | string | - | Additional CSS classes for the label text |
...TextProps | TextProps | - | All standard React Native Text props are supported |
| prop | type | default | description |
|---|---|---|---|
className | string | - | Additional CSS classes for the indicator dot container |
...ViewProps | ViewProps | - | All standard React Native View props are supported |
| prop | type | default | description |
|---|---|---|---|
children | React.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 |
...PressableProps | PressableProps | - | All standard React Native Pressable props are supported |
Custom content inside the trigger reads its state with useYearPickerTrigger().
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Heading text; the visible month and year by default |
...TextProps | TextProps | - | All standard React Native Text props are supported |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Custom indicator content; replaces the chevron |
iconProps | { size?: number; color?: string } | - | Overrides for the default chevron icon |
isAnimatedStyleActive | boolean | true | Whether animated rotation styles are applied |
animation | YearPickerIndicatorAnimation | - | Rotation animation configuration |
...ViewProps | ViewProps | - | All standard React Native View props are supported |
Animation configuration for the year picker trigger chevron rotation. Can be:
false or "disabled": Disable rotation animationundefined: Use default animationobject: Custom animation configuration| prop | type | default | description |
|---|---|---|---|
rotation.value | [number, number] | [0, 90] | Rotation degrees [closed, open] |
rotation.springConfig | WithSpringConfig | Default spring | Spring configuration for the rotation |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Grid content (YearPickerGridBody) |
isAnimatedStyleActive | boolean | true | Whether animated opacity styles are applied |
animation | YearPickerGridAnimation | - | Opacity animation configuration |
...ViewProps | ViewProps | - | All standard React Native View props are supported |
Animation configuration for the year picker grid overlay. Can be:
false or "disabled": Disable opacity animationundefined: Use default animationobject: Custom animation configuration| prop | type | default | description |
|---|---|---|---|
opacity.value | [number, number] | [0, 1] | Opacity values [closed, open] |
opacity.timingConfig | WithTimingConfig | { duration: 200 } | Timing configuration for the opacity |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | <Calendar.YearPickerCell /> | Year cell template, rendered once per year |
cellHeight | number | - | Height of each year cell in pixels |
...FlatListProps | FlatListProps<number> | - | FlatList props except data, renderItem, keyExtractor, numColumns, and columnWrapperStyle |
| prop | type | default | description |
|---|---|---|---|
children | React.ReactNode | - | Custom cell content; the formatted year by default |
...PressableProps | PressableProps | - | 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 calendar state context. Must be used within a Calendar component.
import { useCalendar } from 'heroui-native-pro';
const state = useCalendar();| property | type | description |
|---|---|---|
value | CalendarDate | null | Currently selected date |
setValue | (value: CalendarDate | null) => void | Set the selected date |
visibleRange | RangeValue<CalendarDate> | The date range currently visible in the calendar |
focusedDate | CalendarDate | Currently focused date |
setFocusedDate | (value: CalendarDate) => void | Set the focused date |
isDisabled | boolean | Whether the calendar is disabled |
isReadOnly | boolean | Whether the calendar is read-only |
isValueInvalid | boolean | Whether the current value is invalid |
timeZone | string | Time zone of displayed dates |
minValue | DateValue | null | undefined | Minimum allowed date |
maxValue | DateValue | null | undefined | Maximum allowed date |
focusNextPage | () => void | Navigate to the next month |
focusPreviousPage | () => void | Navigate to the previous month |
selectFocusedDate | () => void | Select the currently focused date |
selectDate | (date: CalendarDate) => void | Select a specific date |
isSelected | (date: CalendarDate) => boolean | Check if a date is selected |
isInvalid | (date: CalendarDate) => boolean | Check if a date is invalid |
isCellDisabled | (date: CalendarDate) => boolean | Check if a date cell is disabled |
isCellUnavailable | (date: CalendarDate) => boolean | Check if a date cell is unavailable |
isCellFocused | (date: CalendarDate) => boolean | Check 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 Calendar.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 |
|---|---|---|
date | CalendarDate | The date of the cell |
formattedDate | string | Locale-formatted day number |
isSelected | boolean | Whether this date is selected |
isToday | boolean | Whether this date is today |
isDisabled | boolean | Whether this date is disabled |
isUnavailable | boolean | Whether isDateUnavailable returns true for this date |
isOutsideMonth | boolean | Whether this date is outside the month of its grid |
isFocused | boolean | Whether this date is focused |
isInvalid | boolean | Whether this date is invalid per minValue/maxValue |
isPressed | boolean | Whether the cell is pressed |
isRangeStart | boolean | First day of the highlighted range (range selection only) |
isRangeEnd | boolean | Last day of the highlighted range (range selection only) |
isRangeFilled | boolean | In a range that spans more than one day (range selection only) |
isRangeMiddle | boolean | Strictly inside the range, not start or end (range selection only) |
isRangeMiddleRowStart | boolean | Range middle cell at the start of a row (range selection only) |
isRangeMiddleRowEnd | boolean | Range 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 Calendar.HeaderCell.
| property | type | description |
|---|---|---|
day | string | Weekday label in the grid's weekdayStyle |
index | number | Column 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 Calendar.YearPickerCell.
| property | type | description |
|---|---|---|
year | number | The year number |
formattedYear | string | Locale-formatted year string |
isSelected | boolean | Whether this year is the visible year |
isCurrentYear | boolean | Whether this year is the current year |
isOpen | boolean | Whether the year picker is open |
selectYear | () => void | Select this year and close the picker |
Returns the state of the year picker trigger, for custom content inside Calendar.YearPickerTrigger.
| property | type | description |
|---|---|---|
isOpen | boolean | Whether the year picker is open |
monthYear | string | Formatted month and year |
toggle | () => void | Toggle the year picker open state |