UNPKG

@orfeas126/box-ui-elements

Version:
16 lines (15 loc) 679 B
import * as React from 'react'; import './ImageTooltipContent.scss'; type OnImageLoad = () => void; export type ImageTooltipContentProps = { /** A React component representing the image used in the visual tooltip */ children: React.ReactElement; /** A string to be used in the tooltip's paragraph content */ content: string; /** A callback triggered onLoad for the image element */ onImageLoad: OnImageLoad; /** A string to be used in the tooltip's title heading */ title: string; }; declare const ImageTooltipContent: ({ children, content, onImageLoad, title }: ImageTooltipContentProps) => React.JSX.Element; export default ImageTooltipContent;