Calendar
A calendar component that allows picking of a single date or a range of dates.
Was this example helpful?
Usage
import { Calendar } from "@medusajs/ui"
<Calendar />
API Reference
This component is based on the react-date-picker package.
Prop | Type | Default |
---|---|---|
mode | "single" | "range" | "single" |
showOutsideDays | boolean | true |
locale | Locale | - |
Was this section helpful?
Examples
Single Date
Was this example helpful?
Range
Was this example helpful?
Changing Locale
Changing the locale requires installing the date-fns library.
Was this example helpful?