style2clip
v0.0.2
Published
Convert html and css block into image and put it into clipboard
Downloads
2
Maintainers
Readme
Style2Clip
Small and lighweight library to copy html & css block into image format.
Installation
npm
To install the package using npm, run the following command
npm install style2clip
Direct Download
Alternatively, if you are not using npm you can download the final compiled file directly
- Go to the release page on github
- Download the zip file
- Copy the
index.js
file into your project - For
typescript
project, copy theindex.d.ts
file into your project
Usage
- Import
Style2Clip
and make an instance
import { Style2Clip } from 'style2clip';
let style2clip = Style2Clip.getInstance();
- Set the your class name for the copy button
style2clip.setButtonClassName(".your-button-class-name");