small change to readme

This commit is contained in:
sara-pervana
2024-01-24 23:52:56 +01:00
committed by Sara Pervana
parent 68e2f6d683
commit 8e92415c34

View File

@@ -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.