Skip to content

mattot-the-builder/style2clip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Go to the release page on github
  2. Download the zip file
  3. Copy the index.js file into your project
  4. For typescript project, copy the index.d.ts file into your project

Usage

  1. Import Style2Clip and make an instance
import { Style2Clip } from 'style2clip';
let style2clip = Style2Clip.getInstance();
  1. Set the your class name for the copy button
style2clip.setButtonClassName(".your-button-class-name");

About

Small & lightweight library to provide copy html & css block into image functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published