Calendar

A calendar component that allows picking of a single date or a range of dates.

January 2025

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Was this example helpful?

Usage#


Code
import { Calendar } from "@medusajs/ui"
Code
<Calendar />

API Reference#


Calendar component used to select a date. Its props are based on React Aria Calendar.

PropTypeDefault
autoFocus
boolean
-
defaultFocusedValue
DateValue
-
errorMessage
ReactNode
-
focusedValue
DateValue
-
isDisabled
boolean
-
isInvalid
boolean
-
isReadOnly
boolean
-
onFocusChange
function
-
pageBehavior
PageBehavior
-
validationState
ValidationState
-
Was this helpful?