0.0.2 • Published 2 years ago
style2clip v0.0.2
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 style2clipDirect 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.jsfile into your project - For
typescriptproject, copy theindex.d.tsfile into your project
Usage
- Import
Style2Clipand 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");