diff --git a/vanilla/templates/docs/components/accordion/figma/index.md b/vanilla/templates/docs/components/accordion/figma/index.md index cd431f7..93fd238 100644 --- a/vanilla/templates/docs/components/accordion/figma/index.md +++ b/vanilla/templates/docs/components/accordion/figma/index.md @@ -4,4 +4,4 @@ context: title: Accordion | Figma --- -# 🚧 WIP 🚧 + diff --git a/vanilla/templates/static/js/copy-to-clipboard.js b/vanilla/templates/static/js/copy-to-clipboard.js new file mode 100644 index 0000000..df78cd6 --- /dev/null +++ b/vanilla/templates/static/js/copy-to-clipboard.js @@ -0,0 +1,11 @@ +(async function clipboard() { + const html = new Blob( + [ + `Button`, + ], + {type: 'text/html'}, + ); + const text = new Blob(['Button'], {type: 'text/plain'}); + const data = new ClipboardItem({'text/html': html, 'text/plain': text}); + await navigator.clipboard.write([data]); +});