@magicbell/magicbell-react
Version:
React components for building a notification inbox for your app
13 lines (12 loc) • 397 B
TypeScript
import { Placement } from '@floating-ui/react';
import { ReactElement } from 'react';
export type TooltipProps = {
tooltip?: string;
children: ReactElement;
placement: Placement;
delay?: number;
};
/**
* Component that renders a tooltip.
*/
export default function Tooltip({ children, tooltip, placement, delay }: TooltipProps): import("@emotion/react/jsx-runtime").JSX.Element;