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

Function Dropdown

src/components/kit/Dropdown.tsx:9–24  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

7}
8
9const Dropdown = (props: Props) => {
10 const { children, tigger } = props;
11
12 return (
13 <DropdownUI.Root modal={false}>
14 <DropdownUI.Trigger asChild onClick={(e) => e.stopPropagation()}>
15 {tigger}
16 </DropdownUI.Trigger>
17 <DropdownUI.Portal>
18 <DropdownUI.Content className="z-[999] drop-shadow" sideOffset={5}>
19 {children}
20 </DropdownUI.Content>
21 </DropdownUI.Portal>
22 </DropdownUI.Root>
23 );
24};
25
26export const DropdownItem = DropdownUI.Item;
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected