@forter/copy

1.5.2 • Public • Published

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

Property Attribute Type Default Description
clipboard clipboard string "Copied text" The text to copy. example: my copied text

Events

Event Description
copy event with the text that was copied, example: {"clipboard": "Copied it"}, method: copy

Slots

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

Package Sidebar

Install

npm i @forter/copy

Weekly Downloads

0

Version

1.5.2

License

Apache-2.0

Unpacked Size

32 kB

Total Files

30

Last publish

Collaborators

  • forter-npm
  • lirown
  • oweingart