/**
 * ldesign v0.4.6
 * (c) 2023 ldesign
 * @license MIT
 */

import Clipboard from 'clipboard';

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

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