@exmg/exmg-copy-to-clipboard
TypeScript icon, indicating that this package has built-in type declarations

9.0.4 • Public • Published

<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

Name Description
default Button to handle copy to clipboard

Properties/Attributes

Name Type Default Description
value string None The value that gets copied and displayed

Methods

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

Events

None

CSS Custom Properties

None

Additional references

Package Sidebar

Install

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

Weekly Downloads

4

Version

9.0.4

License

MIT

Unpacked Size

9.3 kB

Total Files

9

Last publish

Collaborators

  • xm-nuel
  • oleg_makushev
  • livery-ci
  • exm_erwingoossen
  • martinkolkman
  • em-jeroenv
  • nicholas-exmachina
  • marksmits
  • difosfor
  • tylerexmg
  • padamieo_exmachina
  • albert_exm
  • rdrgcnn
  • sander_exmachina
  • joepadmiraal
  • exmachina-ci
  • remonvv
  • kjelles