feat: Enhance date picker usability

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 17:39:32 +00:00
parent 10950a4034
commit f083f8c25d
4 changed files with 183 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
return (
<DayPicker
showOutsideDays={showOutsideDays}
captionLayout="dropdown-buttons"
fromYear={props.fromYear || 1800}
toYear={props.toYear || new Date().getFullYear() + 10}
className={cn("p-3", className)}
classNames={{
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",