(props: Props)
| 7 | } |
| 8 | |
| 9 | const 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 | |
| 26 | export const DropdownItem = DropdownUI.Item; |
| 27 |
nothing calls this directly
no outgoing calls
no test coverage detected