# qwik-copy-text

> A react text copy component to easily copy html as rich text format in clipboard. ✨

Latest version **0.2.0** (published 2022-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install qwik-copy-text
pnpm add qwik-copy-text
yarn add qwik-copy-text
bun add qwik-copy-text
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-10-16 |
| First published | 2022-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 2 |
| Unpacked size | 88.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | mousom |
| Maintainers | mousom |
| Keywords | react copy text, react qwik copy, qwik-copy-text, html to rich text, react rich text component |

## Links

- npm: https://www.npmjs.com/package/qwik-copy-text
- Repository: https://github.com/lmousom/qwik-copy-text
- Homepage: https://github.com/lmousom/qwik-copy-text#readme
- Issues: https://github.com/lmousom/qwik-copy-text/issues
- npm.io page: https://npm.io/package/qwik-copy-text

## Dependencies (2)

- [react-icons](https://npm.io/package/react-icons.md) ^4.6.0
- [framer-motion](https://npm.io/package/framer-motion.md) ^4.1.17

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2022-10-16
- 0.1.8 — 2022-10-16
- 0.1.6 — 2022-10-15
- 0.1.4 — 2022-10-14
- 0.1.2 — 2022-10-14

## README

# ⌗ qwik-copy-text

A react text copy component to easily copy html as rich text format in clipboard. ✨

[![npm version](https://badge.fury.io/js/qwik-copy-text.svg)](https://badge.fury.io/js/qwik-copy-text)

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

## Features

- Hassle free html to rich formatted text 🥳
- Lightweight ⚡
- Easy to use 🐥
- fully customizable style ⚒️

## Install

Via package managers:

```bash
$ npm i qwik-copy-text
```

```bash
$ yarn add qwik-copy-text
```

## Example Usage

```js
import QwikCopy from 'qwik-copy-text'
```

```js
// custom style !optional
 const style = {
    display: 'flex',
    justifyContent: 'center',
    alignItems: 'center',
    width: '20px',
    height: '20px',
    padding: '10px',
    background: '#5784f5',
    color: '#fff',
    fontSize: '20px',
    border: 'none',
    outline: 'none',
    borderRadius: '10px',
    cursor: 'pointer',
  }


 <QwikCopy 
 isDisabled={false}
 styles={style} 
 htmlContent={`<h1> Hello from qwikcopy! </h1>`} 
 />
```

## Props

| Prop      | Type      | Requirement  |Description                                         |
| --------- | --------- | ------------ | --------------------------------------------------- |
| isDisabled     | `boolean`  | `required` | hide/show the component `true or false` |
| htmlContent| `string`  | `required` | html to `rich text`   |
| styles| `object`  | `optional` | object of `React style`   |

## Contributing

Feel free to submit any issues or pull request 🙂

---
_Source: https://npm.io/package/qwik-copy-text · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
