Skip to content

Commit

Permalink
fix(ClipboardCopy): Add string[] type to children
Browse files Browse the repository at this point in the history
The ClipboardCopy component already handles string[] but didn't have it
written in the props as valid.
  • Loading branch information
Venefilyn committed Nov 18, 2024
1 parent d6fa6b4 commit f1671dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export interface ClipboardCopyProps extends Omit<React.HTMLProps<HTMLDivElement>
/** A function that is triggered on changing the text. */
onChange?: (event: React.FormEvent, text?: string) => void;
/** The text which is copied. */
children: string;
children: string | string[];
/** Additional actions for inline clipboard copy. Should be wrapped with ClipboardCopyAction. */
additionalActions?: React.ReactNode;
/** Value to overwrite the randomly generated data-ouia-component-id.*/
Expand Down

0 comments on commit f1671dd

Please sign in to comment.