(props: Props)
| 9 | } |
| 10 | |
| 11 | const Tooltip = (props: Props) => { |
| 12 | const { title, side, children } = props; |
| 13 | |
| 14 | return ( |
| 15 | <TooltipUI.Provider delayDuration={0} skipDelayDuration={0}> |
| 16 | <TooltipUI.Root> |
| 17 | <TooltipUI.Trigger asChild>{children}</TooltipUI.Trigger> |
| 18 | <TooltipUI.Portal> |
| 19 | <TooltipUI.Content |
| 20 | className="bg-zinc-800 text-gray-200 dark:bg-black text-sm p-1 px-2 rounded-md z-[99999]" |
| 21 | side={side} |
| 22 | sideOffset={6} |
| 23 | hidden={title === ""} |
| 24 | > |
| 25 | {title} |
| 26 | <TooltipUI.Arrow /> |
| 27 | </TooltipUI.Content> |
| 28 | </TooltipUI.Portal> |
| 29 | </TooltipUI.Root> |
| 30 | </TooltipUI.Provider> |
| 31 | ); |
| 32 | }; |
| 33 | |
| 34 | export default Tooltip; |
nothing calls this directly
no outgoing calls
no test coverage detected