View as Markdown

API reference: @salmonui/overlays/tooltip

TooltipTriggerPropsinterface

import type { TooltipTriggerProps } from '@salmonui/overlays/tooltip';
interface TooltipTriggerProps {
    readonly 'aria-describedby'?: string | undefined;
    readonly onPointerEnter: (event: ReactPointerEvent<HTMLElement>) => void;
    readonly onPointerLeave: (event: ReactPointerEvent<HTMLElement>) => void;
    readonly onPointerMove?: ((event: ReactPointerEvent<HTMLElement>) => void) | undefined;
    readonly onPointerDown: (event: ReactPointerEvent<HTMLElement>) => void;
    readonly onFocus: (event: FocusEvent<HTMLElement>) => void;
    readonly onBlur: (event: FocusEvent<HTMLElement>) => void;
    readonly ref: (el: HTMLElement | null) => void;
}

Props Tooltip computes for the trigger (spread them in render).

TooltipTriggerProps members (8)
NameSignatureDescription
aria-describedbyoptionalreadonly 'aria-describedby'?: string | undefined;
onPointerEnterreadonly onPointerEnter: (event: ReactPointerEvent<HTMLElement>) => void;
onPointerLeavereadonly onPointerLeave: (event: ReactPointerEvent<HTMLElement>) => void;
onPointerMoveoptionalreadonly onPointerMove?: ((event: ReactPointerEvent<HTMLElement>) => void) | undefined;
onPointerDownreadonly onPointerDown: (event: ReactPointerEvent<HTMLElement>) => void;
onFocusreadonly onFocus: (event: FocusEvent<HTMLElement>) => void;
onBlurreadonly onBlur: (event: FocusEvent<HTMLElement>) => void;
refreadonly ref: (el: HTMLElement | null) => void;