MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / Popover

Function Popover

src/components/kit/Popover.tsx:10–27  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

8}
9
10const Popover = (props: Props) => {
11 const { className, children, tigger } = props;
12
13 return (
14 <PopoverUI.Root modal={false}>
15 <PopoverUI.Trigger asChild>{tigger}</PopoverUI.Trigger>
16 <PopoverUI.Portal>
17 <PopoverUI.Content
18 asChild
19 className={`${className || ""} z-[999] p-2 bg-white dark:bg-zinc-700 drop-shadow rounded-lg`}
20 sideOffset={5}
21 >
22 {children}
23 </PopoverUI.Content>
24 </PopoverUI.Portal>
25 </PopoverUI.Root>
26 );
27};
28
29export default Popover;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected