@dcp-ui/utils.copy

1.0.0 • Public • Published

@dcp-ui/utils.copy

The useCopyText component from @dcp-ui.

desyre npm bundle size License PRs Welcome

Description

A simple hook to copy text from a given HTML element to your clipboard with copy-to-clipboard library

Installation

yarn add @dcp-ui/utils.copy react react-dom styled-components

Import

import { useCopyText } from '@dcp-ui/utils.copy'

Documentation

See the documentation or package source for more details.

Package Sidebar

Install

npm i @dcp-ui/utils.copy

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

3.71 kB

Total Files

3

Last publish

Collaborators

  • iam-merlin