We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 948d3f4 commit 46804a9Copy full SHA for 46804a9
packages/ui/src/components/calendar.tsx
@@ -58,12 +58,12 @@ function Calendar({
58
...classNames,
59
}}
60
components={{
61
- IconLeft: ({ className, ...props }) => (
62
- <ChevronLeft className={cn("h-4 w-4", className)} {...props} />
63
- ),
64
- IconRight: ({ className, ...props }) => (
65
- <ChevronRight className={cn("h-4 w-4", className)} {...props} />
66
+ Chevron: ({ orientation, className, ...props }) =>
+ orientation === "left" ? (
+ <ChevronLeft className={cn("h-4 w-4", className)} {...props} />
+ ) : (
+ <ChevronRight className={cn("h-4 w-4", className)} {...props} />
+ ),
67
68
{...props}
69
/>
0 commit comments