Function
PopoverContent
({
className,
align = "center",
sideOffset = 4,
...props
}: React.ComponentProps<typeof PopoverPrimitive.Content>)
Source from the content-addressed store, hash-verified
| 18 | } |
| 19 | |
| 20 | function PopoverContent({ |
| 21 | className, |
| 22 | align = "center", |
| 23 | sideOffset = 4, |
| 24 | ...props |
| 25 | }: React.ComponentProps<typeof PopoverPrimitive.Content>) { |
| 26 | return ( |
| 27 | <PopoverPrimitive.Portal> |
| 28 | <PopoverPrimitive.Content |
| 29 | data-slot="popover-content" |
| 30 | align={align} |
| 31 | sideOffset={sideOffset} |
| 32 | className={cn( |
| 33 | "bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", |
| 34 | className |
| 35 | )} |
| 36 | {...props} |
| 37 | /> |
| 38 | </PopoverPrimitive.Portal> |
| 39 | ) |
| 40 | } |
| 41 | |
| 42 | function PopoverAnchor({ |
| 43 | ...props |
Callers
nothing calls this directly
Tested by
no test coverage detected