mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
7 lines
230 B
JavaScript
7 lines
230 B
JavaScript
/**
|
|
* Copies the given text to the browser clipboard.
|
|
* @param {string} text
|
|
* @returns {Promise<void>} Rejects when the text couldn't be copied.
|
|
*/
|
|
export const copyToClipboard = (text) => navigator.clipboard.writeText(text)
|