From 37cc6831a6479de910bfb218241450ef585efbdb Mon Sep 17 00:00:00 2001 From: sara-pervana Date: Wed, 24 Jan 2024 23:52:56 +0100 Subject: [PATCH] small change to readme --- pkgs/ui/src/components/copy_to_clipboard/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/ui/src/components/copy_to_clipboard/readme.md b/pkgs/ui/src/components/copy_to_clipboard/readme.md index 646611c..9b8e4a4 100644 --- a/pkgs/ui/src/components/copy_to_clipboard/readme.md +++ b/pkgs/ui/src/components/copy_to_clipboard/readme.md @@ -16,8 +16,8 @@ The component accepts the following props: - Copy Action: When the copy icon is clicked, the component: - - Prioritizes copying the text from the textToCopy prop if it's provided and not an empty string. - - If textToCopy is not provided or is empty, it then attempts to copy the text content of the element referenced by contentRef. + - Prioritizes copying the text from the `textToCopy` prop if it's provided and not an empty string. + - If `textToCopy` is not provided or is empty, it then attempts to copy the text content of the element referenced by contentRef. - Uses the Clipboard API (`navigator.clipboard.writeText`) to copy the text to the user's clipboard. - Displays a snackbar notification confirming the copy action if successful.