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
  62c7b854_a009_a801_507b_47713da62337["PopoverContent()"]
  e7b346a0_21fb_4fd4_a281_d3665522750a["popover.tsx"]
  62c7b854_a009_a801_507b_47713da62337 -->|defined in| e7b346a0_21fb_4fd4_a281_d3665522750a
  style 62c7b854_a009_a801_507b_47713da62337 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/popover.tsx lines 16–48

function PopoverContent({
  className,
  align = "center",
  alignOffset = 0,
  side = "bottom",
  sideOffset = 4,
  ...props
}: PopoverPrimitive.Popup.Props &
  Pick<
    PopoverPrimitive.Positioner.Props,
    "align" | "alignOffset" | "side" | "sideOffset"
  >) {
  return (
    <PopoverPrimitive.Portal>
      <PopoverPrimitive.Positioner
        align={align}
        alignOffset={alignOffset}
        side={side}
        sideOffset={sideOffset}
        className="isolate z-50"
      >
        <PopoverPrimitive.Popup
          data-slot="popover-content"
          className={cn(
            "cn-popover-content cn-popover-content-logical z-50 w-72 origin-(--transform-origin) outline-hidden",
            className
          )}
          {...props}
        />
      </PopoverPrimitive.Positioner>
    </PopoverPrimitive.Portal>
  )
}

Subdomains

Frequently Asked Questions

What does PopoverContent() do?
PopoverContent() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/popover.tsx.
Where is PopoverContent() defined?
PopoverContent() is defined in apps/v4/registry/bases/base/ui/popover.tsx at line 16.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free