Skip to content

TooltipProps

TooltipProps are the props of ReactComponent.TooltipWrapper.

type TooltipProps = {
label: string | React.ReactNode;
children: React.ReactNode;
renderInline?: boolean;
showDelay?: number;
disabled?: boolean;
placement?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
labelClassName?: string;
};
PropDescription
labelThe tooltip content.
childrenThe element the tooltip belongs to.
renderInlineRenders the tooltip next to children instead of in Spotify’s shared tooltip in <body>.
showDelayThe hover time in milliseconds before the tooltip shows.
disabledHides the tooltip.
placementThe preferred side of children.
labelClassNameA class name for the tooltip.