1.1.1 • Published 6 months ago

copykit-react v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Copykit

Copykit is a React component that utilises Material-UI styling to easily generate highly customisable "copy to clipboard" components.

Installation

To start using Copykit components, you must install it first in your project.

npm install copykit-react

Usage

There are 3 components that you can choose from. 1. <IconCopy />

  1. <TextCopy />
  2. <TextIconCopy />
import { useState } from 'react';
import { IconCopy } from 'copykit-react';
import { TextField } from '@mui/material'

function App() {
    const [text, setText] = useState('')
    
  return (
    <>
      <TextField value={text} onChange={(e) => setText(e.target.value)}/>
      <IconCopy text={text} />
    </>
  );
}

export default App;

Documentation

Find the full API documentation and examples here

1.1.1

6 months ago

1.1.0

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago