@promptbook/remote-client
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
48 lines (47 loc) • 1.62 kB
TypeScript
import { ReactNode } from 'react';
type TooltipProps = {
/**
* The content to display in the tooltip
*/
content: string;
/**
* The element that triggers the tooltip
*/
children: ReactNode;
/**
* The position of the tooltip relative to the trigger element
* @default "top"
*/
position?: 'top' | 'right' | 'bottom' | 'left';
/**
* Optional delay before showing the tooltip (in milliseconds)
* @default 0
*/
delay?: number;
/**
* Render the tooltip wrapper as a block-level element that spans full width.
* Useful when wrapping grid/list items so the clickable area matches the visual card.
* @default false
*/
block?: boolean;
/**
* Enable tooltip on touch devices. By default tooltips are disabled on touch to avoid
* stealing clicks from the underlying element (eg. agent card selection).
* @default false
*/
isEnabledOnTouch?: boolean;
/**
* If true, the tooltip will not be displayed but the content will still be rendered.
* In this case <Tooltip> is equivalent to a <React.Fragment> with the content.
*
* Note: Tooltip sometimes breaks the hover, temporarily disable via this prop
*/
isDisabled?: boolean;
};
/**
* A tooltip component that displays additional information when hovering over an element
*
* @private Used internally in book components
*/
export declare function Tooltip({ content, children, position, delay, block, isEnabledOnTouch: enableOnTouch, isDisabled, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
export {};