Debian Codegraph @

node/@patternfly/react-core/src/components/ClipboardCopy/examples/ClipboardCopyExpandedWithArray.tsx

raw
1 import { ClipboardCopy, ClipboardCopyVariant } from '@patternfly/react-core';
2
3 const text = [
4 'Got a lot of text here,',
5 'need to see all of it?',
6 'Click that arrow on the left side and check out the resulting expansion.'
7 ];
8
9 export const ClipboardCopyExpandedWithArray: React.FunctionComponent = () => (
10 <ClipboardCopy
11 copyAriaLabel="Copy expanded example with array"
12 toggleAriaLabel="Show content for expanded example with array"
13 hoverTip="Copy"
14 clickTip="Copied"
15 variant={ClipboardCopyVariant.expansion}
16 >
17 {text.join(' ')}
18 </ClipboardCopy>
19 );