Debian Codegraph @

node/@patternfly/react-core/dist/js/components/ClipboardCopy/ClipboardCopyButton.d.ts

raw
1 /// <reference types="react" />
2 import { TooltipPosition } from '../Tooltip';
3 export interface ClipboardCopyButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'> {
4 /** Callback for the copy when the button is clicked */
5 onClick: (event: React.MouseEvent) => void;
6 /** Content of the copy button */
7 children: React.ReactNode;
8 /** ID of the copy button */
9 id: string;
10 /** @deprecated ID of the content that is being copied */
11 textId?: string;
12 /** Additional classes added to the copy button */
13 className?: string;
14 /** Exit delay on the copy button tooltip */
15 exitDelay?: number;
16 /** Entry delay on the copy button tooltip */
17 entryDelay?: number;
18 /** Max width of the copy button tooltip */
19 maxWidth?: string;
20 /** Position of the copy button tooltip */
21 position?: TooltipPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
22 /** Aria-label for the copy button */
23 'aria-label'?: string;
24 /** Variant of the copy button */
25 variant?: 'control' | 'plain';
26 /** Callback when tooltip's hide transition has finished executing */
27 onTooltipHidden?: () => void;
28 /** Removes padding from clipboard copy button. This is used for inline-compact variant */
29 hasNoPadding?: boolean;
30 }
31 export declare const ClipboardCopyButton: React.FunctionComponent<ClipboardCopyButtonProps>;
32 //# sourceMappingURL=ClipboardCopyButton.d.ts.map