Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-eyedrop

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-eyedrop - npm Package Compare versions

Comparing version 5.1.3 to 5.2.0

2

package.json
{
"name": "react-eyedrop",
"version": "5.1.3",
"version": "5.2.0",
"description": "A reusable ColorPick EyeDropper written in React & TypeScript.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -54,2 +54,3 @@ # React EyeDrop

* **[onPickStart](#api-onPickStart)** <br>
* **[onPickEnd](#api-onPickEnd)** <br>
* React Hook

@@ -155,3 +156,5 @@ * **[Usage](#hook-usage)**

<EyeDropper once />
/* or */
<EyeDropper once={false} />

@@ -205,3 +208,5 @@ ```

}
<!-------->
<EyeDropper onInit={getPeanut} />

@@ -214,3 +219,3 @@ /* Will be called when component is mounted */

###### Expects `function`
###### *Callback for when starting to EyeDrop*
###### *Callback for when you start Eyedropping*
*Example:*

@@ -221,6 +226,26 @@ ```

}
<!-------->
<EyeDropper onPickStart={getBananas} />
/* Will be called when starting to EyeDrop */
```
<a name="api-onPickEnd"></a>
### **onPickEnd**
###### Expects `function`
###### *Callback for when you stop EyeDropping*
*Example:*
```
function buyBurritos() {
console.log('Yum!')
}
<!-------->
<EyeDropper onPickEnd={buyBurritos} />
/* Will be called when you finish EyeDropping */
```
# React Hook

@@ -263,2 +288,4 @@

* 5.2.0
* Added `onPickEnd` property
* 5.1.3

@@ -265,0 +292,0 @@ * Pretty serious bugfix

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc