PopoverContent() — ui Function Reference
Architecture documentation for the PopoverContent() function in popover.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 16ad11a2_9944_15a3_d0b5_ffe3442fa1c3["PopoverContent()"] 04098e1d_da6a_e556_4fb2_451006de445a["popover.tsx"] 16ad11a2_9944_15a3_d0b5_ffe3442fa1c3 -->|defined in| 04098e1d_da6a_e556_4fb2_451006de445a style 16ad11a2_9944_15a3_d0b5_ffe3442fa1c3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui/popover.tsx lines 19–39
function PopoverContent({
className,
align = "center",
sideOffset = 4,
...props
}: React.ComponentProps<typeof PopoverPrimitive.Content>) {
return (
<PopoverPrimitive.Portal>
<PopoverPrimitive.Content
data-slot="popover-content"
align={align}
sideOffset={sideOffset}
className={cn(
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100",
className
)}
{...props}
/>
</PopoverPrimitive.Portal>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does PopoverContent() do?
PopoverContent() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/popover.tsx.
Where is PopoverContent() defined?
PopoverContent() is defined in apps/v4/examples/radix/ui/popover.tsx at line 19.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free