CopyToClipboard

A button to put in the clipboard whatever returns from the provided to the `getText` function.

Choose an example

Usage

<script>
  import {CopyToClipboard} from '@svizzle/ui';
</script>

<CopyToClipboard getText={() => 'Hello world!'} />

Props

getText

    () => …
    • name: "getText"
    • [[Function]]: () => 'Hello world!'
    • [[Prototype]]: ƒ ()