MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / Tooltiper

Function Tooltiper

apps/start/src/components/ui/tooltip.tsx:47–83  ·  view source on GitHub ↗
({
  asChild,
  content,
  children,
  className,
  tooltipClassName,
  onClick,
  side,
  delayDuration = 0,
  sideOffset = 10,
  disabled = false,
  align,
}: TooltiperProps)

Source from the content-addressed store, hash-verified

45 disabled?: boolean;
46}
47export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected