1 "use client"
2
3 import { DatePicker } from "@medusajs/ui"
4
5 export default function DatePickerMinMax() {
6 const today = new Date()
7 const maxDate = new Date()
8 maxDate.setDate(today.getDate() + 30) // 30 days from today
9
10 return (
11 <div className="w-[300px]">
12 <DatePicker
13 minValue={today}
14 maxValue={maxDate}
15 aria-label="Select a date within the next 30 days"
16 />
17 </div>
18 )
19 }