Small and lighweight library to copy html & css block into image format.
To install the package using npm, run the following command
npm install style2clip
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
- 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");