diff --git a/packages/react-core/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactWithAdditionalAction.tsx b/packages/react-core/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactWithAdditionalAction.tsx
index 6b9263fd014..9714cfc9cf4 100644
--- a/packages/react-core/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactWithAdditionalAction.tsx
+++ b/packages/react-core/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactWithAdditionalAction.tsx
@@ -1,18 +1,36 @@
import React from 'react';
-import { ClipboardCopy, ClipboardCopyAction, Button } from '@patternfly/react-core';
+import { ClipboardCopy, ClipboardCopyAction, Button, Tooltip } from '@patternfly/react-core';
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
-export const ClipboardCopyInlineCompactWithAdditionalAction: React.FunctionComponent = () => (
-
- } />
-
- }
- >
- 2.3.4-2-redhat
-
-);
+export const ClipboardCopyInlineCompactWithAdditionalAction: React.FunctionComponent = () => {
+ const [isRunning, setisRunning] = React.useState(false);
+ const runText: string = 'Run in web terminal';
+ const doneRunText: string = 'Running in web terminal';
+ return (
+
+ setisRunning(false)}
+ >
+ }
+ onClick={() => setisRunning(!isRunning)}
+ />
+
+
+ }
+ >
+ 2.3.4-2-redhat
+
+ );
+};
diff --git a/packages/react-core/src/components/CodeBlock/examples/CodeBlockBasic.tsx b/packages/react-core/src/components/CodeBlock/examples/CodeBlockBasic.tsx
index 3b3e47dded2..294cff82969 100644
--- a/packages/react-core/src/components/CodeBlock/examples/CodeBlockBasic.tsx
+++ b/packages/react-core/src/components/CodeBlock/examples/CodeBlockBasic.tsx
@@ -1,9 +1,19 @@
import React from 'react';
-import { CodeBlock, CodeBlockAction, CodeBlockCode, ClipboardCopyButton, Button } from '@patternfly/react-core';
+import {
+ CodeBlock,
+ CodeBlockAction,
+ CodeBlockCode,
+ ClipboardCopyButton,
+ Button,
+ Tooltip
+} from '@patternfly/react-core';
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
export const BasicCodeBlock: React.FunctionComponent = () => {
const [copied, setCopied] = React.useState(false);
+ const [isRunning, setisRunning] = React.useState(false);
+ const runText: string = 'Run in web terminal';
+ const doneRunText: string = 'Running in web terminal';
const clipboardCopyFunc = (event, text) => {
navigator.clipboard.writeText(text.toString());
@@ -39,7 +49,19 @@ url: https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs`;
- } />
+ setisRunning(false)}
+ >
+ }
+ onClick={() => setisRunning(!isRunning)}
+ />
+
);
diff --git a/packages/react-core/src/components/CodeBlock/examples/CodeBlockExpandable.tsx b/packages/react-core/src/components/CodeBlock/examples/CodeBlockExpandable.tsx
index 7044e04ef61..d4c9851751a 100644
--- a/packages/react-core/src/components/CodeBlock/examples/CodeBlockExpandable.tsx
+++ b/packages/react-core/src/components/CodeBlock/examples/CodeBlockExpandable.tsx
@@ -6,13 +6,17 @@ import {
ClipboardCopyButton,
ExpandableSection,
ExpandableSectionToggle,
- Button
+ Button,
+ Tooltip
} from '@patternfly/react-core';
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
export const ExpandableCodeBlock: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = React.useState(false);
const [copied, setCopied] = React.useState(false);
+ const [isRunning, setisRunning] = React.useState(false);
+ const runText: string = 'Run in web terminal';
+ const doneRunText: string = 'Running in web terminal';
const onToggle = (isExpanded) => {
setIsExpanded(isExpanded);
@@ -60,7 +64,19 @@ url: https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs`;
- } />
+ setisRunning(false)}
+ >
+ }
+ onClick={() => setisRunning(!isRunning)}
+ />
+
);