/// import { ITooltipProps } from '../../TooltipEx'; export interface IClipboardButtonProps { /** * Aria label to pass to button * @default "Copy to clipboard" */ ariaLabel?: string; /** * Optional CSS class name to add to Clipboard Button */ className?: string; /** * Callback provieded after a copy is finished. */ onCopy?: () => void; /** * Function to retreive the text that will be copied to the clipboard. * This function can return either a plain text string, a new JSX.Element * with the HTML to copy, or an HTMLexisting DOM Element. */ getContent: () => string | JSX.Element | HTMLElement; /** * Optional tooltip to show when the button is hovered. */ tooltipProps?: ITooltipProps; }