UNPKG

@redocly/theme

Version:

Shared UI components lib

14 lines (13 loc) 586 B
import React from 'react'; import type { JSX, PropsWithChildren, ReactNode } from 'react'; export type TooltipProps = { tip: string | ReactNode; isOpen?: boolean; withArrow?: boolean; placement?: 'top' | 'bottom' | 'left' | 'right'; className?: string; width?: string; dataTestId?: string; }; export declare function TooltipComponent({ children, isOpen, tip, withArrow, placement, className, width, dataTestId, }: PropsWithChildren<TooltipProps>): JSX.Element; export declare const Tooltip: React.NamedExoticComponent<React.PropsWithChildren<TooltipProps>>;