MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Tooltip

Function Tooltip

starters/docs/src/Tooltip.tsx:15–26  ·  view source on GitHub ↗
({children, ...props}: TooltipProps)

Source from the content-addressed store, hash-verified

13}
14
15export function Tooltip({children, ...props}: TooltipProps) {
16 return (
17 <AriaTooltip {...props}>
18 <OverlayArrow>
19 <svg width={8} height={8} viewBox="0 0 8 8">
20 <path d="M0 0 L4 4 L8 0" />
21 </svg>
22 </OverlayArrow>
23 {children}
24 </AriaTooltip>
25 );
26}
27
28export function TooltipTrigger(props: TooltipTriggerComponentProps) {
29 return <AriaTooltipTrigger {...props} />;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected