tuil
ReferenceComponentsDialogs, toasts, and overlays

TooltipProps

TooltipProps component contract.

View rawEdit

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

MemberTypeRequiredDescriptionRelated types
targetIdstringYesThe targetId member uses the string contract.
contentReactNodeYesThe content member uses the ReactNode contract.
descriptionstring | undefinedNoThe description member uses the string | undefined contract.
delaynumber | undefinedNoThe delay member uses the number | undefined contract.
openboolean | undefinedNoThe open member uses the boolean | undefined contract.
defaultOpenboolean | undefinedNoThe defaultOpen member uses the boolean | undefined contract.
onOpenChange((open: boolean) => void | Promise<void>) | undefinedNoThe onOpenChange member uses the ((open: boolean) => void | Promise<void>) | undefined contract.
childrenReactNodeNoThe children member uses the ReactNode contract.

Source

View the secondary source reference

On this page