/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 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
