Interface HeadlessTooltipValue

A value returned from the useTooltip hook.

interface HeadlessTooltipValue {
    anchorProps: HTMLAttributes<HTMLElement>;
    tooltipProps: HTMLAttributes<HTMLElement>;
}

Properties

anchorProps: HTMLAttributes<HTMLElement>

Props of an anchor element that around which a tooltip is positioned.

tooltipProps: HTMLAttributes<HTMLElement>

Props of an element that must have a tooltip behavior.

An object which identity never changes between renders.