A lightweight, reactive drag-and-drop Web Block to copy text or input values to the device clipboard with modern browser API support, fallbacks, and customizable feedback UI.
navigator.clipboard
document.execCommand
OnCopySuccess
OnCopyError
TextToCopy
SuccessMessage
"Copied to clipboard!"
ShowFeedbackMessage
True
FeedbackDurationMs
2000
ExtendedClass
""
CopiedText
ErrorMessage
Copying text from an Input field on a screen.
CopyToClipboard
MyInputVariable
Using your own custom UI design inside the block slot.
"Your Text Here"
CustomButtonSlot
Adding a "Copy API Key" or "Copy Order ID" button inside a Table row.
GetOrders.List.Current.Order.OrderNumber
A: Modern browsers restrict navigator.clipboard access to Secure Contexts (HTTPS) or localhost. This component automatically detects non-secure environments and uses an internal fallback mechanism (document.execCommand), but for production applications, HTTPS is strongly recommended.
localhost
A: This block is optimized for plain text, API keys, URLs, and code snippets. To copy rich HTML formatting, extend the internal JavaScript node to use ClipboardItem.
ClipboardItem
A: You can set ShowFeedbackMessage = False and handle the OnCopySuccess event on your parent screen to show custom popups, tooltips, or notifications.
ShowFeedbackMessage = False