@erudilabs/tooltip
Version:
A tooltip is a element used in conjunction with the cursor or mouse pointer to display information about an item without needing to click on it.
15 lines (12 loc) • 483 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren } from 'react';
import { Placement } from '@floating-ui/react';
type TooltipPlacementProps = Placement;
interface TooltipProps extends PropsWithChildren {
className?: string;
content: string;
testId?: string;
placement?: TooltipPlacementProps;
}
declare const Tooltip: (props: TooltipProps) => react_jsx_runtime.JSX.Element;
export { Tooltip, TooltipPlacementProps, TooltipProps };