Skip to content

Commit f1671dd

Browse files
committed
fix(ClipboardCopy): Add string[] type to children
The ClipboardCopy component already handles string[] but didn't have it written in the props as valid.
1 parent d6fa6b4 commit f1671dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-core/src/components/ClipboardCopy/ClipboardCopy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export interface ClipboardCopyProps extends Omit<React.HTMLProps<HTMLDivElement>
8989
/** A function that is triggered on changing the text. */
9090
onChange?: (event: React.FormEvent, text?: string) => void;
9191
/** The text which is copied. */
92-
children: string;
92+
children: string | string[];
9393
/** Additional actions for inline clipboard copy. Should be wrapped with ClipboardCopyAction. */
9494
additionalActions?: React.ReactNode;
9595
/** Value to overwrite the randomly generated data-ouia-component-id.*/

0 commit comments

Comments
 (0)