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 8e61159a_940d_19b3_ab28_17e1fcb9858e["popover.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 8e61159a_940d_19b3_ab28_17e1fcb9858e --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 83796271_4368_20bb_9a9c_e1714e7440de["react-popover"] 8e61159a_940d_19b3_ab28_17e1fcb9858e --> 83796271_4368_20bb_9a9c_e1714e7440de 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 8e61159a_940d_19b3_ab28_17e1fcb9858e --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 style 8e61159a_940d_19b3_ab28_17e1fcb9858e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import * as PopoverPrimitive from "@radix-ui/react-popover"
import { cn } from "@/lib/utils"
const Popover = PopoverPrimitive.Root
const PopoverTrigger = PopoverPrimitive.Trigger
const PopoverContent = React.forwardRef<
React.ElementRef<typeof PopoverPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
<PopoverPrimitive.Portal>
<PopoverPrimitive.Content
ref={ref}
align={align}
sideOffset={sideOffset}
className={cn(
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-popover-content-transform-origin]",
className
)}
{...props}
/>
</PopoverPrimitive.Portal>
))
PopoverContent.displayName = PopoverPrimitive.Content.displayName
export { Popover, PopoverTrigger, PopoverContent }
Domain
Subdomains
Functions
Dependencies
- react
- react-popover
- 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, ChartRegistry subdomain.
What functions are defined in popover.tsx?
popover.tsx defines 1 function(s): PopoverContent.
What does popover.tsx depend on?
popover.tsx imports 3 module(s): react, react-popover, utils.
Where is popover.tsx in the architecture?
popover.tsx is located at deprecated/www/registry/default/ui/popover.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free