MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / ButtonWithTooltip

Function ButtonWithTooltip

frontend/components/button-with-tooltip.tsx:19–36  ·  view source on GitHub ↗
({
    tooltipContent,
    children,
    ...buttonProps
}: ButtonWithTooltipProps)

Source from the content-addressed store, hash-verified

17}
18
19export function ButtonWithTooltip({
20 tooltipContent,
21 children,
22 ...buttonProps
23}: ButtonWithTooltipProps) {
24 return (
25 <TooltipProvider>
26 <Tooltip>
27 <TooltipTrigger asChild>
28 <Button {...buttonProps}>{children}</Button>
29 </TooltipTrigger>
30 <TooltipContent className="max-w-xs text-wrap">
31 {tooltipContent}
32 </TooltipContent>
33 </Tooltip>
34 </TooltipProvider>
35 )
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected