Socket
Socket
Sign inDemoInstall

react-compare-image-slider

Package Overview
Dependencies
11
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-compare-image-slider

A simple interactive component for comparing two images


Version published
Weekly downloads
11
Maintainers
1
Install size
1.96 MB
Created
Weekly downloads
 

Changelog

Source

0.1.15 (2020-07-27)

Note: Version bump only for package root

Readme

Source

react-compare-image-slider

npm npm

A simple tool for comparing two images.

To use the react-compare-image-slider component in your code:

From your project folder, install the component from npm.

npm install react-compare-image-slider

Import the component.

In a JavaScript module:

import { ReactCompareImageSlider } from "react-compare-image-slider";

In an HTML page:

<script src="./path-to/react-compare-image-slider/build/index.umd.js"></script>
<script type="module">
  import "./path-to/react-compare-image-slider/build/index.js";
</script>

Or:

<script
  type="module"
  src="./path-to/compare-image-slider/build/index.js"
></script>

Add the component to your application or component:

<ReactCompareImageSlider leftImage={leftImage} rightImage={rightImage} />

Keywords

FAQs

Last updated on 27 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc