--- title: "Date Picker" description: "A date picker component with range and presets." component: true --- ## Usage --- ```tsx import { DatePicker } from "@medusajs/ui" ``` ```tsx ``` ## API Reference --- This component is based on the [Calendar](/components/calendar) component and [Radix UI Popover](https://www.radix-ui.com/primitives/docs/components/popover). ## Examples --- ### Single ### Single with time ### Single with presets ### Single with presets and time ### Range ### Range with time ### Range with presets ### Range with presets and time