Socket
Socket
Sign inDemoInstall

@exmg/exmg-copy-to-clipboard

Package Overview
Dependencies
11
Maintainers
18
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @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.


Version published
Maintainers
18
Install size
3.26 MB
Created

Readme

Source

<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

Keywords

FAQs

Last updated on 14 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc