9.0.4 • Published 3 months ago

@exmg/exmg-copy-to-clipboard v9.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
3 months ago

<exmg-copy-to-clipboard> Published on npm

@exmg/exmg-copy-to-clipboard

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.

Installation

npm install @exmg/exmg-copy-to-clipboard

Example Usage

Standard

<exmg-copy-to-clipboard value="mark@test.com">
  <md-icon-button><md-icon>content-copy</md-icon></md-icon-button>
</exmg-copy-to-clipboard>

API

Slots

NameDescription
defaultButton to handle copy to clipboard

Properties/Attributes

NameTypeDefaultDescription
valuestringNoneThe value that gets copied and displayed

Methods

NameDescription
toggleToggles the opened state of the component
showSets the opened state of the component to true
hideSets the opened state of the component to false

Events

None

CSS Custom Properties

None

Additional references

9.0.4

3 months ago

9.0.3

3 months ago

9.0.1

3 months ago

8.1.35

8 months ago

8.1.34

10 months ago

8.1.31

12 months ago

8.1.33

11 months ago

8.1.32

12 months ago

8.1.23

2 years ago

8.1.17

2 years ago

8.0.1

3 years ago

8.0.0

3 years ago

6.1.2

3 years ago

6.1.1

4 years ago

6.1.0

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.0.0

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.0.2

6 years ago

3.0.1

6 years ago