Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@exmg/exmg-copy-to-clipboard

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 8.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
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">
  <paper-icon-button icon="content-copy"></paper-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

Package last updated on 29 Oct 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc