/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

import Clipboard from 'clipboard';

function copyText(text) {
  const div = document.createElement("div");
  const clip = new Clipboard(div, {
    text() {
      return text;
    }
  });
  div.click();
  clip.destroy();
  div.remove();
}

export { copyText as default };
//# sourceMappingURL=clipboard.js.map
