({
asChild,
content,
children,
className,
tooltipClassName,
onClick,
side,
delayDuration = 0,
sideOffset = 10,
disabled = false,
align,
}: TooltiperProps)
| 45 | disabled?: boolean; |
| 46 | } |
| 47 | export function Tooltiper({ |
| 48 | asChild, |
| 49 | content, |
| 50 | children, |
| 51 | className, |
| 52 | tooltipClassName, |
| 53 | onClick, |
| 54 | side, |
| 55 | delayDuration = 0, |
| 56 | sideOffset = 10, |
| 57 | disabled = false, |
| 58 | align, |
| 59 | }: TooltiperProps) { |
| 60 | if (disabled) return children; |
| 61 | return ( |
| 62 | <Tooltip delayDuration={delayDuration}> |
| 63 | <TooltipTrigger |
| 64 | asChild={asChild} |
| 65 | className={className} |
| 66 | onClick={onClick} |
| 67 | type="button" |
| 68 | > |
| 69 | {children} |
| 70 | </TooltipTrigger> |
| 71 | <TooltipPortal> |
| 72 | <TooltipContent |
| 73 | sideOffset={sideOffset} |
| 74 | side={side} |
| 75 | className={tooltipClassName} |
| 76 | align={align} |
| 77 | > |
| 78 | {content} |
| 79 | </TooltipContent> |
| 80 | </TooltipPortal> |
| 81 | </Tooltip> |
| 82 | ); |
| 83 | } |
nothing calls this directly
no outgoing calls
no test coverage detected