Helper element to create icon/buttons that lets the user copy content to the clipboard. Just wrap it around the button or icon and set the value that needs to be copied.
npm install @exmg/exm-copy-to-clipboard
<exm-copy-to-clipboard value="mark@test.com">
<md-icon-button><md-icon>content-copy</md-icon></md-icon-button>
</exm-copy-to-clipboard>
Name | Description |
---|---|
default | Button to handle copy to clipboard |
Name | Type | Default | Description |
---|---|---|---|
value |
string |
None | The value that gets copied and displayed |
Name | Description |
---|---|
toggle |
Toggles the opened state of the component |
show |
Sets the opened state of the component to true |
hide |
Sets the opened state of the component to false |
None
None