Skip to content

Calendar

Free

Pick one date or several on a month grid. It can show more than one month, week numbers, dots for events, and other calendar systems.

  • Base UI
  • React Aria
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put the header and the grid in the calendar. The grid body returns one cell for each date, so you can mark the busy days.

appointment-date.tsx

Calendar

PropTypeDefaultDescription
valueCalendarValueType<T | null, M>—The current value (controlled).
defaultValueCalendarValueType<T | null, M>—The default value (uncontrolled).
aria-labelstring—Defines a string value that labels the current element.
aria-labelledbystring—Identifies the element (or elements) that labels the current element.
aria-describedbystring—Identifies the element (or elements) that describes the object.
aria-detailsstring—Identifies the element (or elements) that provide a detailed, extended description for the object.
idstring—The element's unique identifier. See MDN.
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickMouseEventHandler<HTMLDivElement>—
onClickCaptureMouseEventHandler<HTMLDivElement>—
onAuxClickMouseEventHandler<HTMLDivElement>—
onAuxClickCaptureMouseEventHandler<HTMLDivElement>—
onContextMenuMouseEventHandler<HTMLDivElement>—
onContextMenuCaptureMouseEventHandler<HTMLDivElement>—
onDoubleClickMouseEventHandler<HTMLDivElement>—
onDoubleClickCaptureMouseEventHandler<HTMLDivElement>—
onMouseDownMouseEventHandler<HTMLDivElement>—
onMouseDownCaptureMouseEventHandler<HTMLDivElement>—
onMouseEnterMouseEventHandler<HTMLDivElement>—
onMouseLeaveMouseEventHandler<HTMLDivElement>—
onMouseMoveMouseEventHandler<HTMLDivElement>—
onMouseMoveCaptureMouseEventHandler<HTMLDivElement>—
onMouseOutMouseEventHandler<HTMLDivElement>—
onMouseOutCaptureMouseEventHandler<HTMLDivElement>—
onMouseOverMouseEventHandler<HTMLDivElement>—
onMouseOverCaptureMouseEventHandler<HTMLDivElement>—
onMouseUpMouseEventHandler<HTMLDivElement>—
onMouseUpCaptureMouseEventHandler<HTMLDivElement>—
onTouchCancelTouchEventHandler<HTMLDivElement>—
onTouchCancelCaptureTouchEventHandler<HTMLDivElement>—
onTouchEndTouchEventHandler<HTMLDivElement>—
onTouchEndCaptureTouchEventHandler<HTMLDivElement>—
onTouchMoveTouchEventHandler<HTMLDivElement>—
onTouchMoveCaptureTouchEventHandler<HTMLDivElement>—
onTouchStartTouchEventHandler<HTMLDivElement>—
onTouchStartCaptureTouchEventHandler<HTMLDivElement>—
onPointerDownPointerEventHandler<HTMLDivElement>—
onPointerDownCapturePointerEventHandler<HTMLDivElement>—
onPointerMovePointerEventHandler<HTMLDivElement>—
onPointerMoveCapturePointerEventHandler<HTMLDivElement>—
onPointerUpPointerEventHandler<HTMLDivElement>—
onPointerUpCapturePointerEventHandler<HTMLDivElement>—
onPointerCancelPointerEventHandler<HTMLDivElement>—
onPointerCancelCapturePointerEventHandler<HTMLDivElement>—
onPointerEnterPointerEventHandler<HTMLDivElement>—
onPointerLeavePointerEventHandler<HTMLDivElement>—
onPointerOverPointerEventHandler<HTMLDivElement>—
onPointerOverCapturePointerEventHandler<HTMLDivElement>—
onPointerOutPointerEventHandler<HTMLDivElement>—
onPointerOutCapturePointerEventHandler<HTMLDivElement>—
onGotPointerCapturePointerEventHandler<HTMLDivElement>—
onGotPointerCaptureCapturePointerEventHandler<HTMLDivElement>—
onLostPointerCapturePointerEventHandler<HTMLDivElement>—
onLostPointerCaptureCapturePointerEventHandler<HTMLDivElement>—
onScrollUIEventHandler<HTMLDivElement>—
onScrollCaptureUIEventHandler<HTMLDivElement>—
onWheelWheelEventHandler<HTMLDivElement>—
onWheelCaptureWheelEventHandler<HTMLDivElement>—
onAnimationStartAnimationEventHandler<HTMLDivElement>—
onAnimationStartCaptureAnimationEventHandler<HTMLDivElement>—
onAnimationEndAnimationEventHandler<HTMLDivElement>—
onAnimationEndCaptureAnimationEventHandler<HTMLDivElement>—
onAnimationIterationAnimationEventHandler<HTMLDivElement>—
onAnimationIterationCaptureAnimationEventHandler<HTMLDivElement>—
onTransitionCancelTransitionEventHandler<HTMLDivElement>—
onTransitionCancelCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionEndTransitionEventHandler<HTMLDivElement>—
onTransitionEndCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionRunTransitionEventHandler<HTMLDivElement>—
onTransitionRunCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionStartTransitionEventHandler<HTMLDivElement>—
onTransitionStartCaptureTransitionEventHandler<HTMLDivElement>—
styleStyleOrFunction<CalendarRenderProps<M>>—The inline style for the element. A function may be provided to compute the style based on component state.
children—The children of the component. A function may be provided to alter the children based on component state.
slotstring | null—A slot name for the component. Slots allow the component to receive props from a parent component. An explicit null value indicates that the local props completely override all props received from a parent.
render—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
minValueDateValue | null—The minimum allowed date that a user may select.
maxValueDateValue | null—The maximum allowed date that a user may select.
autoFocusbooleanfalseWhether to automatically focus the calendar when it mounts.
focusedValueDateValue | null—Controls the currently focused date within the calendar.
defaultFocusedValueDateValue | null—The date that is focused when the calendar first mounts (uncontrolled).
onFocusChange—Handler that is called when the focused date changes.
pageBehavior"single""visible"visibleControls the behavior of paging. Pagination either works by advancing the visible page by visibleDuration (default) or one unit of visibleDuration.
firstDayOfWeek"fri""mon""sat""sun""thu""tue""wed"—The day that starts the week.
selectionAlignment"center""end""start"'center'Determines the alignment of the visible months on initial render based on the current selection or current date if there is no selection.
selectionModeM'single'Whether single or multiple selection is enabled.
isDateUnavailable—Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
visibleDurationDateDuration{ months: 1 }The amount of days that will be displayed at once. This affects how pagination works.
createCalendar—A function to create a new Calendar object for a given calendar identifier. If not provided, the createCalendar function from @internationalized/date will be used.
disabledboolean—Turns off the control: no focus, no edits, and the disabled look.
readOnlyboolean—The user can focus and read the value, but cannot change it.
invalidboolean—Shows the invalid look and sets aria-invalid.
onValueChange—Runs on each change, with the new value and the Base UI change details.
classNamestring—
size"default""lg""sm""default"The cell size: sm 28, default 32, lg 36. On a touch screen every size grows to 44.
weeksInMonthnumber | "auto"—The rows of a month view. Default 6, so the height never changes when the user pages. "auto": the rows of each month (4 to 6, React Aria). Week and day views ignore it.
labelsPartial<{ weekNumber: string; }>—The words (CALENDAR_LABELS), to translate them. Keep the object stable.

CalendarMonths

<div>
PropTypeDefaultDescription
weekdayStyle"long""narrow""short"'narrow'The style of weekday names to display in the calendar grid header, e.g. single letter, abbreviation, or full day name.
showWeekNumbersboolean—A 28px column at the start with the ISO week number of each row, in a row header (<th scope="row">, named "week 43" in the locale). Not in React Aria.
children—A function from a date to a CalendarCell, for every grid: custom content, indicators, a labelSuffix. Default: <CalendarCell date={date} />.
headingFormat—The format of each CalendarHeading. Default: a long month in month views ("October 2026"), a short month in week and day views ("Oct 18 – 24, 2026"), so a range fits the header.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CalendarHeader

<header>
PropTypeDefaultDescription
...props<header> attributes—Every other attribute goes to the <header>, with a ref.

CalendarHeading

<div>
PropTypeDefaultDescription
renderDOMRenderFunction<"h1", undefined>—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
offsetDateDuration0The number of months from the start of the visible range to display.
levelnumber3The heading level.
classNamestring—
format—The date parts of the heading: Intl.DateTimeFormatOptions, the parts React Aria reads (CalendarHeadingFormatOptions). Default: the long month and the year.
...props<div> attributes—Every other attribute goes to the <div>.

CalendarTitle

<div>
PropTypeDefaultDescription
renderDOMRenderFunction<"h1", undefined>—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
levelnumber3The heading level.
classNamestring—
...props<div> attributes—Every other attribute goes to the <div>.

CalendarPrevious

PropTypeDefaultDescription
aria-labelstring—Defines a string value that labels the current element.
aria-labelledbystring—Identifies the element (or elements) that labels the current element.
aria-describedbystring—Identifies the element (or elements) that describes the object.
aria-detailsstring—Identifies the element (or elements) that provide a detailed, extended description for the object.
idstring—The element's unique identifier. See MDN.
excludeFromTabOrderboolean—Whether to exclude the element from the sequential tab order. If true, the element will not be focusable via the keyboard by tabbing. This should be avoided except in rare scenarios where an alternative means of accessing the element or its functionality via the keyboard is available.
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickCaptureMouseEventHandler<HTMLButtonElement>—
onAuxClickMouseEventHandler<HTMLButtonElement>—
onAuxClickCaptureMouseEventHandler<HTMLButtonElement>—
onContextMenuMouseEventHandler<HTMLButtonElement>—
onContextMenuCaptureMouseEventHandler<HTMLButtonElement>—
onDoubleClickMouseEventHandler<HTMLButtonElement>—
onDoubleClickCaptureMouseEventHandler<HTMLButtonElement>—
onMouseDownMouseEventHandler<HTMLButtonElement>—
onMouseDownCaptureMouseEventHandler<HTMLButtonElement>—
onMouseEnterMouseEventHandler<HTMLButtonElement>—
onMouseLeaveMouseEventHandler<HTMLButtonElement>—
onMouseMoveMouseEventHandler<HTMLButtonElement>—
onMouseMoveCaptureMouseEventHandler<HTMLButtonElement>—
onMouseOutMouseEventHandler<HTMLButtonElement>—
onMouseOutCaptureMouseEventHandler<HTMLButtonElement>—
onMouseOverMouseEventHandler<HTMLButtonElement>—
onMouseOverCaptureMouseEventHandler<HTMLButtonElement>—
onMouseUpMouseEventHandler<HTMLButtonElement>—
onMouseUpCaptureMouseEventHandler<HTMLButtonElement>—
onTouchCancelTouchEventHandler<HTMLButtonElement>—
onTouchCancelCaptureTouchEventHandler<HTMLButtonElement>—
onTouchEndTouchEventHandler<HTMLButtonElement>—
onTouchEndCaptureTouchEventHandler<HTMLButtonElement>—
onTouchMoveTouchEventHandler<HTMLButtonElement>—
onTouchMoveCaptureTouchEventHandler<HTMLButtonElement>—
onTouchStartTouchEventHandler<HTMLButtonElement>—
onTouchStartCaptureTouchEventHandler<HTMLButtonElement>—
onPointerDownPointerEventHandler<HTMLButtonElement>—
onPointerDownCapturePointerEventHandler<HTMLButtonElement>—
onPointerMovePointerEventHandler<HTMLButtonElement>—
onPointerMoveCapturePointerEventHandler<HTMLButtonElement>—
onPointerUpPointerEventHandler<HTMLButtonElement>—
onPointerUpCapturePointerEventHandler<HTMLButtonElement>—
onPointerCancelPointerEventHandler<HTMLButtonElement>—
onPointerCancelCapturePointerEventHandler<HTMLButtonElement>—
onPointerEnterPointerEventHandler<HTMLButtonElement>—
onPointerLeavePointerEventHandler<HTMLButtonElement>—
onPointerOverPointerEventHandler<HTMLButtonElement>—
onPointerOverCapturePointerEventHandler<HTMLButtonElement>—
onPointerOutPointerEventHandler<HTMLButtonElement>—
onPointerOutCapturePointerEventHandler<HTMLButtonElement>—
onGotPointerCapturePointerEventHandler<HTMLButtonElement>—
onGotPointerCaptureCapturePointerEventHandler<HTMLButtonElement>—
onLostPointerCapturePointerEventHandler<HTMLButtonElement>—
onLostPointerCaptureCapturePointerEventHandler<HTMLButtonElement>—
onScrollUIEventHandler<HTMLButtonElement>—
onScrollCaptureUIEventHandler<HTMLButtonElement>—
onWheelWheelEventHandler<HTMLButtonElement>—
onWheelCaptureWheelEventHandler<HTMLButtonElement>—
onAnimationStartAnimationEventHandler<HTMLButtonElement>—
onAnimationStartCaptureAnimationEventHandler<HTMLButtonElement>—
onAnimationEndAnimationEventHandler<HTMLButtonElement>—
onAnimationEndCaptureAnimationEventHandler<HTMLButtonElement>—
onAnimationIterationAnimationEventHandler<HTMLButtonElement>—
onAnimationIterationCaptureAnimationEventHandler<HTMLButtonElement>—
onTransitionCancel—
onTransitionCancelCapture—
onTransitionEnd—
onTransitionEndCapture—
onTransitionRun—
onTransitionRunCapture—
onTransitionStart—
onTransitionStartCapture—
onKeyDown—Handler that is called when a key is pressed.
onKeyUp—Handler that is called when a key is released.
onFocus—Handler that is called when the element receives focus.
onBlur—Handler that is called when the element loses focus.
onFocusChange—Handler that is called when the element's focus status changes.
onHoverStart—Handler that is called when a hover interaction starts.
onHoverEnd—Handler that is called when a hover interaction ends.
onHoverChange—Handler that is called when the hover state changes.
onPress—Handler that is called when the press is released over the target.
onPressStart—Handler that is called when a press interaction starts.
onPressEnd—Handler that is called when a press interaction ends, either over the target or when the pointer leaves the target.
onPressChange—Handler that is called when the press state changes.
onPressUp—Handler that is called when a press is released over the target, regardless of whether it started on the target or not.
onClick—**Not recommended – use onPress instead.** onClick is an alias for onPress provided for compatibility with other libraries. onPress provides additional event details for non-mouse interactions.
autoFocusboolean—Whether the element should receive focus on render.
styleStyleOrFunction<ButtonRenderProps>—The inline style for the element. A function may be provided to compute the style based on component state.
childrenChildrenOrFunction<ButtonRenderProps>—The children of the component. A function may be provided to alter the children based on component state.
render—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
disabledboolean—Turns off the control: no focus, no edits, and the disabled look.
aria-disabled"false" | "true" | boolean—Indicates whether the element is disabled to users of assistive technology.
aria-expanded"false" | "true" | boolean—Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
aria-haspopup—Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
aria-controlsstring—Identifies the element (or elements) whose contents or presence are controlled by the current element.
aria-pressed"false" | "mixed" | "true" | boolean—Indicates the current "pressed" state of toggle buttons.
aria-current—Indicates whether this element represents the current item within a container or set of related elements.
type"button""reset""submit"'button'The behavior of the button when used in an HTML form.
preventFocusOnPressboolean—Whether to prevent focus from moving to the button when pressing it. Caution, this can make the button inaccessible and should only be used when alternative keyboard interaction is provided, such as ComboBox's MenuTrigger or a NumberField's increment/decrement control.
formstring—The <form> element to associate the button with. The value of this attribute must be the id of a <form> in the same document. See MDN.
formAction—The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner.
formEncTypestring—Indicates how to encode the form data that is submitted.
formMethodstring—Indicates the HTTP method used to submit the form.
formNoValidateboolean—Indicates that the form is not to be validated when it is submitted.
formTargetstring—Overrides the target attribute of the button's form owner.
namestring—Submitted as a pair with the button's value as part of the form data.
valuestring—The value associated with the button's name when it's submitted with the form data.
isPendingboolean—Whether the button is in a pending state. This disables press and hover events while retaining focusability, and announces the pending state to screen readers.
classNamestring—

CalendarNext

PropTypeDefaultDescription
aria-labelstring—Defines a string value that labels the current element.
aria-labelledbystring—Identifies the element (or elements) that labels the current element.
aria-describedbystring—Identifies the element (or elements) that describes the object.
aria-detailsstring—Identifies the element (or elements) that provide a detailed, extended description for the object.
idstring—The element's unique identifier. See MDN.
excludeFromTabOrderboolean—Whether to exclude the element from the sequential tab order. If true, the element will not be focusable via the keyboard by tabbing. This should be avoided except in rare scenarios where an alternative means of accessing the element or its functionality via the keyboard is available.
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickCaptureMouseEventHandler<HTMLButtonElement>—
onAuxClickMouseEventHandler<HTMLButtonElement>—
onAuxClickCaptureMouseEventHandler<HTMLButtonElement>—
onContextMenuMouseEventHandler<HTMLButtonElement>—
onContextMenuCaptureMouseEventHandler<HTMLButtonElement>—
onDoubleClickMouseEventHandler<HTMLButtonElement>—
onDoubleClickCaptureMouseEventHandler<HTMLButtonElement>—
onMouseDownMouseEventHandler<HTMLButtonElement>—
onMouseDownCaptureMouseEventHandler<HTMLButtonElement>—
onMouseEnterMouseEventHandler<HTMLButtonElement>—
onMouseLeaveMouseEventHandler<HTMLButtonElement>—
onMouseMoveMouseEventHandler<HTMLButtonElement>—
onMouseMoveCaptureMouseEventHandler<HTMLButtonElement>—
onMouseOutMouseEventHandler<HTMLButtonElement>—
onMouseOutCaptureMouseEventHandler<HTMLButtonElement>—
onMouseOverMouseEventHandler<HTMLButtonElement>—
onMouseOverCaptureMouseEventHandler<HTMLButtonElement>—
onMouseUpMouseEventHandler<HTMLButtonElement>—
onMouseUpCaptureMouseEventHandler<HTMLButtonElement>—
onTouchCancelTouchEventHandler<HTMLButtonElement>—
onTouchCancelCaptureTouchEventHandler<HTMLButtonElement>—
onTouchEndTouchEventHandler<HTMLButtonElement>—
onTouchEndCaptureTouchEventHandler<HTMLButtonElement>—
onTouchMoveTouchEventHandler<HTMLButtonElement>—
onTouchMoveCaptureTouchEventHandler<HTMLButtonElement>—
onTouchStartTouchEventHandler<HTMLButtonElement>—
onTouchStartCaptureTouchEventHandler<HTMLButtonElement>—
onPointerDownPointerEventHandler<HTMLButtonElement>—
onPointerDownCapturePointerEventHandler<HTMLButtonElement>—
onPointerMovePointerEventHandler<HTMLButtonElement>—
onPointerMoveCapturePointerEventHandler<HTMLButtonElement>—
onPointerUpPointerEventHandler<HTMLButtonElement>—
onPointerUpCapturePointerEventHandler<HTMLButtonElement>—
onPointerCancelPointerEventHandler<HTMLButtonElement>—
onPointerCancelCapturePointerEventHandler<HTMLButtonElement>—
onPointerEnterPointerEventHandler<HTMLButtonElement>—
onPointerLeavePointerEventHandler<HTMLButtonElement>—
onPointerOverPointerEventHandler<HTMLButtonElement>—
onPointerOverCapturePointerEventHandler<HTMLButtonElement>—
onPointerOutPointerEventHandler<HTMLButtonElement>—
onPointerOutCapturePointerEventHandler<HTMLButtonElement>—
onGotPointerCapturePointerEventHandler<HTMLButtonElement>—
onGotPointerCaptureCapturePointerEventHandler<HTMLButtonElement>—
onLostPointerCapturePointerEventHandler<HTMLButtonElement>—
onLostPointerCaptureCapturePointerEventHandler<HTMLButtonElement>—
onScrollUIEventHandler<HTMLButtonElement>—
onScrollCaptureUIEventHandler<HTMLButtonElement>—
onWheelWheelEventHandler<HTMLButtonElement>—
onWheelCaptureWheelEventHandler<HTMLButtonElement>—
onAnimationStartAnimationEventHandler<HTMLButtonElement>—
onAnimationStartCaptureAnimationEventHandler<HTMLButtonElement>—
onAnimationEndAnimationEventHandler<HTMLButtonElement>—
onAnimationEndCaptureAnimationEventHandler<HTMLButtonElement>—
onAnimationIterationAnimationEventHandler<HTMLButtonElement>—
onAnimationIterationCaptureAnimationEventHandler<HTMLButtonElement>—
onTransitionCancel—
onTransitionCancelCapture—
onTransitionEnd—
onTransitionEndCapture—
onTransitionRun—
onTransitionRunCapture—
onTransitionStart—
onTransitionStartCapture—
onKeyDown—Handler that is called when a key is pressed.
onKeyUp—Handler that is called when a key is released.
onFocus—Handler that is called when the element receives focus.
onBlur—Handler that is called when the element loses focus.
onFocusChange—Handler that is called when the element's focus status changes.
onHoverStart—Handler that is called when a hover interaction starts.
onHoverEnd—Handler that is called when a hover interaction ends.
onHoverChange—Handler that is called when the hover state changes.
onPress—Handler that is called when the press is released over the target.
onPressStart—Handler that is called when a press interaction starts.
onPressEnd—Handler that is called when a press interaction ends, either over the target or when the pointer leaves the target.
onPressChange—Handler that is called when the press state changes.
onPressUp—Handler that is called when a press is released over the target, regardless of whether it started on the target or not.
onClick—**Not recommended – use onPress instead.** onClick is an alias for onPress provided for compatibility with other libraries. onPress provides additional event details for non-mouse interactions.
autoFocusboolean—Whether the element should receive focus on render.
styleStyleOrFunction<ButtonRenderProps>—The inline style for the element. A function may be provided to compute the style based on component state.
childrenChildrenOrFunction<ButtonRenderProps>—The children of the component. A function may be provided to alter the children based on component state.
render—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
disabledboolean—Turns off the control: no focus, no edits, and the disabled look.
aria-disabled"false" | "true" | boolean—Indicates whether the element is disabled to users of assistive technology.
aria-expanded"false" | "true" | boolean—Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
aria-haspopup—Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
aria-controlsstring—Identifies the element (or elements) whose contents or presence are controlled by the current element.
aria-pressed"false" | "mixed" | "true" | boolean—Indicates the current "pressed" state of toggle buttons.
aria-current—Indicates whether this element represents the current item within a container or set of related elements.
type"button""reset""submit"'button'The behavior of the button when used in an HTML form.
preventFocusOnPressboolean—Whether to prevent focus from moving to the button when pressing it. Caution, this can make the button inaccessible and should only be used when alternative keyboard interaction is provided, such as ComboBox's MenuTrigger or a NumberField's increment/decrement control.
formstring—The <form> element to associate the button with. The value of this attribute must be the id of a <form> in the same document. See MDN.
formAction—The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner.
formEncTypestring—Indicates how to encode the form data that is submitted.
formMethodstring—Indicates the HTTP method used to submit the form.
formNoValidateboolean—Indicates that the form is not to be validated when it is submitted.
formTargetstring—Overrides the target attribute of the button's form owner.
namestring—Submitted as a pair with the button's value as part of the form data.
valuestring—The value associated with the button's name when it's submitted with the form data.
isPendingboolean—Whether the button is in a pending state. This disables press and hover events while retaining focusability, and announces the pending state to screen readers.
classNamestring—

CalendarGrid

PropTypeDefaultDescription
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickMouseEventHandler<HTMLTableElement>—
onClickCaptureMouseEventHandler<HTMLTableElement>—
onAuxClickMouseEventHandler<HTMLTableElement>—
onAuxClickCaptureMouseEventHandler<HTMLTableElement>—
onContextMenuMouseEventHandler<HTMLTableElement>—
onContextMenuCaptureMouseEventHandler<HTMLTableElement>—
onDoubleClickMouseEventHandler<HTMLTableElement>—
onDoubleClickCaptureMouseEventHandler<HTMLTableElement>—
onMouseDownMouseEventHandler<HTMLTableElement>—
onMouseDownCaptureMouseEventHandler<HTMLTableElement>—
onMouseEnterMouseEventHandler<HTMLTableElement>—
onMouseLeaveMouseEventHandler<HTMLTableElement>—
onMouseMoveMouseEventHandler<HTMLTableElement>—
onMouseMoveCaptureMouseEventHandler<HTMLTableElement>—
onMouseOutMouseEventHandler<HTMLTableElement>—
onMouseOutCaptureMouseEventHandler<HTMLTableElement>—
onMouseOverMouseEventHandler<HTMLTableElement>—
onMouseOverCaptureMouseEventHandler<HTMLTableElement>—
onMouseUpMouseEventHandler<HTMLTableElement>—
onMouseUpCaptureMouseEventHandler<HTMLTableElement>—
onTouchCancelTouchEventHandler<HTMLTableElement>—
onTouchCancelCaptureTouchEventHandler<HTMLTableElement>—
onTouchEndTouchEventHandler<HTMLTableElement>—
onTouchEndCaptureTouchEventHandler<HTMLTableElement>—
onTouchMoveTouchEventHandler<HTMLTableElement>—
onTouchMoveCaptureTouchEventHandler<HTMLTableElement>—
onTouchStartTouchEventHandler<HTMLTableElement>—
onTouchStartCaptureTouchEventHandler<HTMLTableElement>—
onPointerDownPointerEventHandler<HTMLTableElement>—
onPointerDownCapturePointerEventHandler<HTMLTableElement>—
onPointerMovePointerEventHandler<HTMLTableElement>—
onPointerMoveCapturePointerEventHandler<HTMLTableElement>—
onPointerUpPointerEventHandler<HTMLTableElement>—
onPointerUpCapturePointerEventHandler<HTMLTableElement>—
onPointerCancelPointerEventHandler<HTMLTableElement>—
onPointerCancelCapturePointerEventHandler<HTMLTableElement>—
onPointerEnterPointerEventHandler<HTMLTableElement>—
onPointerLeavePointerEventHandler<HTMLTableElement>—
onPointerOverPointerEventHandler<HTMLTableElement>—
onPointerOverCapturePointerEventHandler<HTMLTableElement>—
onPointerOutPointerEventHandler<HTMLTableElement>—
onPointerOutCapturePointerEventHandler<HTMLTableElement>—
onGotPointerCapturePointerEventHandler<HTMLTableElement>—
onGotPointerCaptureCapturePointerEventHandler<HTMLTableElement>—
onLostPointerCapturePointerEventHandler<HTMLTableElement>—
onLostPointerCaptureCapturePointerEventHandler<HTMLTableElement>—
onScrollUIEventHandler<HTMLTableElement>—
onScrollCaptureUIEventHandler<HTMLTableElement>—
onWheelWheelEventHandler<HTMLTableElement>—
onWheelCaptureWheelEventHandler<HTMLTableElement>—
onAnimationStartAnimationEventHandler<HTMLTableElement>—
onAnimationStartCaptureAnimationEventHandler<HTMLTableElement>—
onAnimationEndAnimationEventHandler<HTMLTableElement>—
onAnimationEndCaptureAnimationEventHandler<HTMLTableElement>—
onAnimationIterationAnimationEventHandler<HTMLTableElement>—
onAnimationIterationCaptureAnimationEventHandler<HTMLTableElement>—
onTransitionCancelTransitionEventHandler<HTMLTableElement>—
onTransitionCancelCaptureTransitionEventHandler<HTMLTableElement>—
onTransitionEndTransitionEventHandler<HTMLTableElement>—
onTransitionEndCaptureTransitionEventHandler<HTMLTableElement>—
onTransitionRunTransitionEventHandler<HTMLTableElement>—
onTransitionRunCaptureTransitionEventHandler<HTMLTableElement>—
onTransitionStartTransitionEventHandler<HTMLTableElement>—
onTransitionStartCaptureTransitionEventHandler<HTMLTableElement>—
styleCSSProperties—The inline style for the element.
renderDOMRenderFunction<"table", undefined>—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
offsetDateDuration—An offset from the beginning of the visible date range that this CalendarGrid should display. Useful when displaying more than one month at a time.
weekdayStyle"long""narrow""short"'narrow'The style of weekday names to display in the calendar grid header, e.g. single letter, abbreviation, or full day name.
classNamestring—
children—The header and body (CalendarGridHeader, CalendarGridBody), or a function from a date to a CalendarCell. Default: the styled header and one CalendarCell per date.
showWeekNumbersbooleanfalseA 28px column at the start with the ISO week number of each row, in a row header (<th scope="row">, named "week 43" in the locale). Not in React Aria.

CalendarGridHeader

PropTypeDefaultDescription
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClick—
onClickCapture—
onAuxClick—
onAuxClickCapture—
onContextMenu—
onContextMenuCapture—
onDoubleClick—
onDoubleClickCapture—
onMouseDown—
onMouseDownCapture—
onMouseEnter—
onMouseLeave—
onMouseMove—
onMouseMoveCapture—
onMouseOut—
onMouseOutCapture—
onMouseOver—
onMouseOverCapture—
onMouseUp—
onMouseUpCapture—
onTouchCancel—
onTouchCancelCapture—
onTouchEnd—
onTouchEndCapture—
onTouchMove—
onTouchMoveCapture—
onTouchStart—
onTouchStartCapture—
onPointerDown—
onPointerDownCapture—
onPointerMove—
onPointerMoveCapture—
onPointerUp—
onPointerUpCapture—
onPointerCancel—
onPointerCancelCapture—
onPointerEnter—
onPointerLeave—
onPointerOver—
onPointerOverCapture—
onPointerOut—
onPointerOutCapture—
onGotPointerCapture—
onGotPointerCaptureCapture—
onLostPointerCapture—
onLostPointerCaptureCapture—
onScrollUIEventHandler<HTMLTableSectionElement>—
onScrollCaptureUIEventHandler<HTMLTableSectionElement>—
onWheel—
onWheelCapture—
onAnimationStart—
onAnimationStartCapture—
onAnimationEnd—
onAnimationEndCapture—
onAnimationIteration—
onAnimationIterationCapture—
onTransitionCancel—
onTransitionCancelCapture—
onTransitionEnd—
onTransitionEndCapture—
onTransitionRun—
onTransitionRunCapture—
onTransitionStart—
onTransitionStartCapture—
styleCSSProperties—The inline style for the element.
renderDOMRenderFunction<"thead", undefined>—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
classNamestring—
children—A function from a weekday name to a CalendarHeaderCell. Default: one styled cell.

CalendarHeaderCell

PropTypeDefaultDescription
idstring—The element's unique identifier. See MDN.
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClick—
onClickCapture—
onAuxClick—
onAuxClickCapture—
onContextMenu—
onContextMenuCapture—
onDoubleClick—
onDoubleClickCapture—
onMouseDown—
onMouseDownCapture—
onMouseEnter—
onMouseLeave—
onMouseMove—
onMouseMoveCapture—
onMouseOut—
onMouseOutCapture—
onMouseOver—
onMouseOverCapture—
onMouseUp—
onMouseUpCapture—
onTouchCancel—
onTouchCancelCapture—
onTouchEnd—
onTouchEndCapture—
onTouchMove—
onTouchMoveCapture—
onTouchStart—
onTouchStartCapture—
onPointerDown—
onPointerDownCapture—
onPointerMove—
onPointerMoveCapture—
onPointerUp—
onPointerUpCapture—
onPointerCancel—
onPointerCancelCapture—
onPointerEnter—
onPointerLeave—
onPointerOver—
onPointerOverCapture—
onPointerOut—
onPointerOutCapture—
onGotPointerCapture—
onGotPointerCaptureCapture—
onLostPointerCapture—
onLostPointerCaptureCapture—
onScroll—
onScrollCapture—
onWheel—
onWheelCapture—
onAnimationStart—
onAnimationStartCapture—
onAnimationEnd—
onAnimationEndCapture—
onAnimationIteration—
onAnimationIterationCapture—
onTransitionCancel—
onTransitionCancelCapture—
onTransitionEnd—
onTransitionEndCapture—
onTransitionRun—
onTransitionRunCapture—
onTransitionStart—
onTransitionStartCapture—
styleCSSProperties—The inline style for the element.
childrenReactNode—The children of the component.
renderDOMRenderFunction<"th", undefined>—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
classNamestring—

CalendarGridBody

PropTypeDefaultDescription
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClick—
onClickCapture—
onAuxClick—
onAuxClickCapture—
onContextMenu—
onContextMenuCapture—
onDoubleClick—
onDoubleClickCapture—
onMouseDown—
onMouseDownCapture—
onMouseEnter—
onMouseLeave—
onMouseMove—
onMouseMoveCapture—
onMouseOut—
onMouseOutCapture—
onMouseOver—
onMouseOverCapture—
onMouseUp—
onMouseUpCapture—
onTouchCancel—
onTouchCancelCapture—
onTouchEnd—
onTouchEndCapture—
onTouchMove—
onTouchMoveCapture—
onTouchStart—
onTouchStartCapture—
onPointerDown—
onPointerDownCapture—
onPointerMove—
onPointerMoveCapture—
onPointerUp—
onPointerUpCapture—
onPointerCancel—
onPointerCancelCapture—
onPointerEnter—
onPointerLeave—
onPointerOver—
onPointerOverCapture—
onPointerOut—
onPointerOutCapture—
onGotPointerCapture—
onGotPointerCaptureCapture—
onLostPointerCapture—
onLostPointerCaptureCapture—
onScrollUIEventHandler<HTMLTableSectionElement>—
onScrollCaptureUIEventHandler<HTMLTableSectionElement>—
onWheel—
onWheelCapture—
onAnimationStart—
onAnimationStartCapture—
onAnimationEnd—
onAnimationEndCapture—
onAnimationIteration—
onAnimationIterationCapture—
onTransitionCancel—
onTransitionCancelCapture—
onTransitionEnd—
onTransitionEndCapture—
onTransitionRun—
onTransitionRunCapture—
onTransitionStart—
onTransitionStartCapture—
styleCSSProperties—The inline style for the element.
renderDOMRenderFunction<"tbody", undefined>—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
classNamestring—
refRef<HTMLTableSectionElement>—The <tbody>. The component also uses it for the page motion.
children—A function from a date to a CalendarCell. Default: <CalendarCell date={date} />.

CalendarCell

PropTypeDefaultDescription
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickMouseEventHandler<HTMLTableCellElement>—
onClickCaptureMouseEventHandler<HTMLTableCellElement>—
onAuxClickMouseEventHandler<HTMLTableCellElement>—
onAuxClickCaptureMouseEventHandler<HTMLTableCellElement>—
onContextMenuMouseEventHandler<HTMLTableCellElement>—
onContextMenuCaptureMouseEventHandler<HTMLTableCellElement>—
onDoubleClickMouseEventHandler<HTMLTableCellElement>—
onDoubleClickCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseDownMouseEventHandler<HTMLTableCellElement>—
onMouseDownCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseEnterMouseEventHandler<HTMLTableCellElement>—
onMouseLeaveMouseEventHandler<HTMLTableCellElement>—
onMouseMoveMouseEventHandler<HTMLTableCellElement>—
onMouseMoveCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseOutMouseEventHandler<HTMLTableCellElement>—
onMouseOutCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseOverMouseEventHandler<HTMLTableCellElement>—
onMouseOverCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseUpMouseEventHandler<HTMLTableCellElement>—
onMouseUpCaptureMouseEventHandler<HTMLTableCellElement>—
onTouchCancelTouchEventHandler<HTMLTableCellElement>—
onTouchCancelCaptureTouchEventHandler<HTMLTableCellElement>—
onTouchEndTouchEventHandler<HTMLTableCellElement>—
onTouchEndCaptureTouchEventHandler<HTMLTableCellElement>—
onTouchMoveTouchEventHandler<HTMLTableCellElement>—
onTouchMoveCaptureTouchEventHandler<HTMLTableCellElement>—
onTouchStartTouchEventHandler<HTMLTableCellElement>—
onTouchStartCaptureTouchEventHandler<HTMLTableCellElement>—
onPointerDown—
onPointerDownCapture—
onPointerMove—
onPointerMoveCapture—
onPointerUp—
onPointerUpCapture—
onPointerCancel—
onPointerCancelCapture—
onPointerEnter—
onPointerLeave—
onPointerOver—
onPointerOverCapture—
onPointerOut—
onPointerOutCapture—
onGotPointerCapture—
onGotPointerCaptureCapture—
onLostPointerCapture—
onLostPointerCaptureCapture—
onScrollUIEventHandler<HTMLTableCellElement>—
onScrollCaptureUIEventHandler<HTMLTableCellElement>—
onWheelWheelEventHandler<HTMLTableCellElement>—
onWheelCaptureWheelEventHandler<HTMLTableCellElement>—
onAnimationStart—
onAnimationStartCapture—
onAnimationEnd—
onAnimationEndCapture—
onAnimationIteration—
onAnimationIterationCapture—
onTransitionCancel—
onTransitionCancelCapture—
onTransitionEnd—
onTransitionEndCapture—
onTransitionRun—
onTransitionRunCapture—
onTransitionStart—
onTransitionStartCapture—
onHoverStart—Handler that is called when a hover interaction starts.
onHoverEnd—Handler that is called when a hover interaction ends.
onHoverChange—Handler that is called when the hover state changes.
styleStyleOrFunction<CalendarCellRenderProps>—The inline style for the element. A function may be provided to compute the style based on component state.
children—The children of the component. A function may be provided to alter the children based on component state.
render—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
dateRequiredCalendarDate—The date to render in the cell.
classNamestring—
layout"inline""stacked"—inline (default): the day number in a square cell. stacked: a tall cell with two lines from the top (Week Strip: the weekday over the day number). Mark the struck part of a stacked cell yourself (group-data-unavailable/calendar-cell:line-through).
labelSuffixstring—Words that the screen reader name of the cell adds after the date: "4 free times", "fully booked", "€109". Use it for what an indicator, a price, or a line-through shows. React Aria builds the name itself and drops an aria-label prop.

CalendarDayButton

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CalendarCellIndicator

<span>
PropTypeDefaultDescription
tone"destructive""info""neutral""success""warning"—
variant"default""muted""ring"—
count1231How many dots, 1 to 3. Use 3 for "3 or more".
place"bottom""corner""corner"corner (default): 5px dots at the top-end corner. bottom: 4px dots under the day number, in the today dot's spot (a Week Strip day with tasks); the today dot hides there.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

CalendarMonthSelect

<button>
PropTypeDefaultDescription
classNamestring—
contentPropsOmit<SelectContentProps, "children">—Props of the list popup (SelectContent): side, align, className...
size"default""lg""sm""xs"—
formatPick<DateTimeFormatOptions, "month">—The month names (Intl options): { month: "short" } (default, "Oct") or { month: "long" }.
From Base UISelect.TriggerBase UI docs
disabledboolean—Whether the component should ignore user interaction.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

CalendarYearSelect

<button>
PropTypeDefaultDescription
classNamestring—
contentPropsOmit<SelectContentProps, "children">—Props of the list popup (SelectContent): side, align, className...
size"default""lg""sm""xs"—
visibleYearsnumber20The number of years to display.
format—The year and era (Intl options).
From Base UISelect.TriggerBase UI docs
disabledboolean—Whether the component should ignore user interaction.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

CalendarError

<div>
PropTypeDefaultDescription
childrenReactNode—
renderDOMRenderFunction<any, any>—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
classNamestring—
...props<div> attributes—Every other attribute goes to the <div>.
  • Use it when the grid can stay on the page, such as a booking page.
  • Use selectionMode="multiple" to pick many dates.
  • Use minValue, maxValue, and isDateUnavailable to block dates.
  • Use visibleDuration for two months, a week, or a few days.
TabMoves focus between the previous button, the next button, and the grid.
Left ArroworRight ArrowMoves focus one day back or on. Right to left swaps them.
Up ArroworDown ArrowMoves focus one row up or down.
Page UporPage DownGoes one month back or on. With Shift, goes one year.
HomeorEndGoes to the start or the end of the month.
EnterorSpacePicks the focused date.

It is a React Aria calendar. The month is a grid, and each day is a button in a grid cell.

Give it an aria-label, or put it next to a label that names it.

Unavailable days keep focus and stay readable, so a keyboard user can find them.

On a touch screen each cell grows to 44 × 44px.

Built with

Installs with Calendar

Components
Button,Dot,Select
  1. AddedCalendar, with Button, Dot, Select.
Open the release