Date Picker

A date picker component with range and presets.

Was this example helpful?

Usage#


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

API Reference#


PropTypeDefault
aria-describedby
string
-
aria-details
string
-
aria-label
string
-
aria-labelledby
string
-
autoFocus
boolean
-
defaultOpen
boolean
-
description
ReactNode
-
errorMessage
ReactNode
|
function
-
hideTimeZone
boolean
-
hourCycle
12
|24
-
id
string
-
isDisabled
boolean
-
isInvalid
boolean
-
isOpen
boolean
-
isReadOnly
boolean
-
isRequired
boolean
-
label
ReactNode
-
name
string
-
onBlur
function
-
onFocus
function
-
onFocusChange
function
-
onKeyDown
function
-
onKeyUp
function
-
onOpenChange
function
-
pageBehavior
PageBehavior
-
placeholderValue
CalendarDate
|
CalendarDateTime
-
shouldForceLeadingZeros
boolean
-
validate
function
-
validationBehavior
"aria"
|"native"
-
Was this helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break