popover.tsx — ui Source File
Architecture documentation for popover.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e7b346a0_21fb_4fd4_a281_d3665522750a["popover.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] e7b346a0_21fb_4fd4_a281_d3665522750a --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 a20f26c9_b4a8_0fb3_569f_a8cf7096aa05["popover"] e7b346a0_21fb_4fd4_a281_d3665522750a --> a20f26c9_b4a8_0fb3_569f_a8cf7096aa05 8ad666ec_1b20_adda_0392_87a60bdb3a68["utils"] e7b346a0_21fb_4fd4_a281_d3665522750a --> 8ad666ec_1b20_adda_0392_87a60bdb3a68 style e7b346a0_21fb_4fd4_a281_d3665522750a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Popover as PopoverPrimitive } from "@base-ui/react/popover"
import { cn } from "@/registry/bases/base/lib/utils"
function Popover({ ...props }: PopoverPrimitive.Root.Props) {
return <PopoverPrimitive.Root data-slot="popover" {...props} />
}
function PopoverTrigger({ ...props }: PopoverPrimitive.Trigger.Props) {
return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />
}
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>
)
}
function PopoverHeader({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="popover-header"
className={cn("cn-popover-header", className)}
{...props}
/>
)
}
function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props) {
return (
<PopoverPrimitive.Title
data-slot="popover-title"
className={cn("cn-popover-title", className)}
{...props}
/>
)
}
function PopoverDescription({
className,
...props
}: PopoverPrimitive.Description.Props) {
return (
<PopoverPrimitive.Description
data-slot="popover-description"
className={cn("cn-popover-description", className)}
{...props}
/>
)
}
export {
Popover,
PopoverContent,
PopoverDescription,
PopoverHeader,
PopoverTitle,
PopoverTrigger,
}
Domain
Subdomains
Functions
Dependencies
- popover
- react
- utils
Source
Frequently Asked Questions
What does popover.tsx do?
popover.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in popover.tsx?
popover.tsx defines 6 function(s): Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger.
What does popover.tsx depend on?
popover.tsx imports 3 module(s): popover, react, utils.
Where is popover.tsx in the architecture?
popover.tsx is located at apps/v4/registry/bases/base/ui/popover.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free