@helpwave/hightide
Version:
helpwave's component and theming library
31 lines (28 loc) • 1.37 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren } from 'react';
type Position = 'top' | 'bottom' | 'left' | 'right';
type CopyToClipboardWrapperProps = PropsWithChildren<{
textToCopy: string;
/**
* Class names of additional styling properties for the tooltip
*/
tooltipClassName?: string;
/**
* Class names of additional styling properties for the container from which the tooltip will be created
*/
containerClassName?: string;
position?: Position;
zIndex?: number;
}>;
/**
* A Component for showing a tooltip when hovering over Content
* @param tooltip The tooltip to show can be a text or any ReactNode
* @param children The Content for which the tooltip should be created
* @param tooltipClassName Additional ClassNames for the Container of the tooltip
* @param containerClassName Additional ClassNames for the Container holding the content
* @param position The direction of the tooltip relative to the Container
* @param zIndex The z Index of the tooltip (you may require this when stacking modal)
* @constructor
*/
declare const CopyToClipboardWrapper: ({ children, textToCopy, tooltipClassName, containerClassName, position, zIndex, }: CopyToClipboardWrapperProps) => react_jsx_runtime.JSX.Element;
export { CopyToClipboardWrapper, type CopyToClipboardWrapperProps };