ReferenceComponentsDialogs, toasts, and overlays
TooltipProps
TooltipProps component contract.
Type
export interface TooltipProps {
readonly targetId: string;
readonly content: ReactNode;
readonly description?: string;
readonly delay?: number;
readonly open?: boolean;
readonly defaultOpen?: boolean;
readonly onOpenChange?: (open: boolean) => void | Promise<void>;
readonly children?: ReactNode;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
targetId | string | Yes | The targetId member uses the string contract. | — |
content | ReactNode | Yes | The content member uses the ReactNode contract. | — |
description | string | undefined | No | The description member uses the string | undefined contract. | — |
delay | number | undefined | No | The delay member uses the number | undefined contract. | — |
open | boolean | undefined | No | The open member uses the boolean | undefined contract. | — |
defaultOpen | boolean | undefined | No | The defaultOpen member uses the boolean | undefined contract. | — |
onOpenChange | ((open: boolean) => void | Promise<void>) | undefined | No | The onOpenChange member uses the ((open: boolean) => void | Promise<void>) | undefined contract. | — |
children | ReactNode | No | The children member uses the ReactNode contract. | — |