Licence
Apache-2.0
Version
1.5.3
Deps
1
Size
32 kB
Vulns
0
Weekly
0
fc-copy
An element to copy to clipboard text
Usage
<script>
import '@forter/copy';
</script>
<fc-copy>
<fc-button icon="copy"></fc-button>
</fc-copy>
Examples
<!-- copyText -->
<fc-copy>
Copy Text
</fc-copy>
<!-- IE -->
<fc-copy ie>
<fc-button icon="copy"></fc-button>
</fc-copy>
Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
clipboard |
clipboard |
string |
"Copied text" | The text to copy. example: my copied text |
Events
| Event | Description |
|---|---|
copy |
event with the text that was copied, example: {"clipboard": "Copied it"} |
Slots
| Name | Description |
|---|---|
example: <fc-button icon="copy"></fc-button> |