@@ -10,20 +10,28 @@ const PopoverTrigger = PopoverPrimitive.Trigger
10
10
const PopoverContent = React . forwardRef <
11
11
React . ElementRef < typeof PopoverPrimitive . Content > ,
12
12
React . ComponentPropsWithoutRef < typeof PopoverPrimitive . Content >
13
- > ( ( { className, align = "center" , sideOffset = 4 , ...props } , ref ) => (
14
- < PopoverPrimitive . Portal >
15
- < PopoverPrimitive . Content
16
- ref = { ref }
17
- align = { align }
18
- sideOffset = { sideOffset }
19
- className = { cn (
20
- "text-popover-foreground z-popover w-72 rounded-md border bg-background-highlight p-4 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2" ,
21
- className
22
- ) }
23
- { ...props }
24
- />
25
- </ PopoverPrimitive . Portal >
26
- ) )
13
+ > (
14
+ (
15
+ { className, children, align = "center" , sideOffset = 4 , ...props } ,
16
+ ref
17
+ ) => (
18
+ < PopoverPrimitive . Portal >
19
+ < PopoverPrimitive . Content
20
+ ref = { ref }
21
+ align = { align }
22
+ sideOffset = { sideOffset }
23
+ className = { cn (
24
+ "text-popover-foreground z-popover w-72 rounded-md border bg-background-highlight p-4 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2" ,
25
+ className
26
+ ) }
27
+ { ...props }
28
+ >
29
+ { children }
30
+ < PopoverPrimitive . Arrow className = "fill-background-highlight" />
31
+ </ PopoverPrimitive . Content >
32
+ </ PopoverPrimitive . Portal >
33
+ )
34
+ )
27
35
PopoverContent . displayName = PopoverPrimitive . Content . displayName
28
36
29
37
const PopoverClose = PopoverPrimitive . Close
0 commit comments