@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
29 lines • 1.42 kB
TypeScript
import * as React from 'react';
import { TooltipPosition } from '../Tooltip';
import { PopoverPosition } from '../Popover';
export interface ClipboardCopyButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'> {
/** Callback for the copy when the button is clicked */
onClick: (event: React.MouseEvent) => void;
/** Content of the copy button */
children: React.ReactNode;
/** ID of the copy button */
id: string;
/** ID of the content that is being copied */
textId: string;
/** Additional classes added to the copy button */
className?: string;
/** Exit delay on the copy button tooltip */
exitDelay?: number;
/** Entry delay on the copy button tooltip */
entryDelay?: number;
/** Max width of the copy button tooltip */
maxWidth?: string;
/** Position of the copy button tooltip */
position?: TooltipPosition | PopoverPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
/** Aria-label for the copy button */
'aria-label'?: string;
/** Variant of the copy button */
variant?: 'control' | 'plain';
}
export declare const ClipboardCopyButton: React.FunctionComponent<ClipboardCopyButtonProps>;
//# sourceMappingURL=ClipboardCopyButton.d.ts.map