Socket
Book a DemoInstallSign in
Socket

@forter/copy

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forter/copy

copy from Forter Components

latest
Source
npmnpm
Version
1.5.3
Version published
Maintainers
0
Created
Source

fc-copy

An element to copy to clipboard text

Usage

<script>
   import '@forter/copy';
</script>

<fc-copy>
  <fc-button icon="copy"></fc-button>
</fc-copy>

Examples

<!-- copyText -->
<fc-copy>
    Copy Text
</fc-copy>

<!-- IE -->
<fc-copy ie>
  <fc-button icon="copy"></fc-button>
</fc-copy>

Properties

PropertyAttributeTypeDefaultDescription
clipboardclipboardstring"Copied text"The text to copy. example: my copied text

Events

EventDescription
copyevent with the text that was copied, example: {"clipboard": "Copied it"}

Slots

NameDescription
example: <fc-button icon="copy"></fc-button>

Keywords

web-components

FAQs

Package last updated on 17 Dec 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