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).
| Name | Signature | Description |
|---|---|---|
aria-describedbyoptional | readonly 'aria-describedby'?: string | undefined; | |
onPointerEnter | readonly onPointerEnter: (event: ReactPointerEvent<HTMLElement>) => void; | |
onPointerLeave | readonly onPointerLeave: (event: ReactPointerEvent<HTMLElement>) => void; | |
onPointerMoveoptional | readonly onPointerMove?: ((event: ReactPointerEvent<HTMLElement>) => void) | undefined; | |
onPointerDown | readonly onPointerDown: (event: ReactPointerEvent<HTMLElement>) => void; | |
onFocus | readonly onFocus: (event: FocusEvent<HTMLElement>) => void; | |
onBlur | readonly onBlur: (event: FocusEvent<HTMLElement>) => void; | |
ref | readonly ref: (el: HTMLElement | null) => void; |