Home / Function/ PopoverContent() — ui Function Reference

PopoverContent() — ui Function Reference

Architecture documentation for the PopoverContent() function in popover.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  a7d573d7_3873_211b_87f7_47e1941ffffa["PopoverContent()"]
  0baafdd7_693e_f4f9_662a_4542b583b6e9["popover.tsx"]
  a7d573d7_3873_211b_87f7_47e1941ffffa -->|defined in| 0baafdd7_693e_f4f9_662a_4542b583b6e9
  style a7d573d7_3873_211b_87f7_47e1941ffffa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/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>
  )
}

Subdomains

Frequently Asked Questions

What does PopoverContent() do?
PopoverContent() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/popover.tsx.
Where is PopoverContent() defined?
PopoverContent() is defined in apps/v4/examples/radix/ui-rtl/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