| 1 |
import { ClipboardCopy } from '@patternfly/react-core'; |
| 2 |
export const ClipboardCopyInlineCompactTruncation: React.FunctionComponent = () => ( |
| 3 |
<> |
| 4 |
<ClipboardCopy |
| 5 |
copyAriaLabel="Copy inline compact with truncation at end example" |
| 6 |
truncation |
| 7 |
hoverTip="Copy" |
| 8 |
clickTip="Copied" |
| 9 |
variant="inline-compact" |
| 10 |
> |
| 11 |
This lengthy, copyable content will be truncated with default settings when the truncation prop is simply set to |
| 12 |
true. This is useful for quickly applying truncation without needing to worry about any other properties to set. |
| 13 |
</ClipboardCopy> |
| 14 |
<br /> |
| 15 |
<br /> |
| 16 |
<ClipboardCopy |
| 17 |
copyAriaLabel="Copy inline compact with truncation at start example" |
| 18 |
truncation={{ position: 'start' }} |
| 19 |
hoverTip="Copy" |
| 20 |
clickTip="Copied" |
| 21 |
variant="inline-compact" |
| 22 |
> |
| 23 |
This lengthy, copyable content will be truncated with customized settings when the truncation prop is passed an |
| 24 |
object containing Truncate props. This is useful for finetuning truncation for your particular use-case. |
| 25 |
</ClipboardCopy> |
| 26 |
</> |
| 27 |
); |