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

react-tooltip-lite

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tooltip-lite - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

2

dist/__tests__/Tooltip.test.js

@@ -206,2 +206,4 @@ "use strict";

});
it('should support onToggle prop');
it('should support zIndex prop');
});

4

dist/index.d.ts

@@ -28,4 +28,4 @@ declare module 'react-tooltip-lite' {

useDefaultStyles?: boolean;
zIndex: number;
onToggle: (showTip: boolean) => void;
zIndex?: number;
onToggle?: (showTip: boolean) => void;
}

@@ -32,0 +32,0 @@

@@ -206,2 +206,4 @@ "use strict";

});
it('should support onToggle prop');
it('should support zIndex prop');
});

@@ -61,5 +61,5 @@ import React from 'react';

</Tooltip>
<Tooltip onToggle={(isOpen) => {alert(`Is tooltip open ? \n Answer : ${isOpen? 'Yes' : 'No' }`) }} content="alert shown" className="target" tipContentClassName="">
Hover Me
<Tooltip onToggle={(isOpen) => { alert(`Is tooltip open ? \n Answer : ${isOpen ? 'Yes' : 'No'}`); }} content="alert shown" className="target" tipContentClassName="">
Hover Me
</Tooltip>

@@ -353,2 +353,11 @@ </div>

</section>
<section>
<Tooltip tagName="span" content="check the console log" onToggle={isVisible => console.log(`is visible: ${isVisible}`)}>
On toggle example
</Tooltip>
&nbsp; &nbsp;
<Tooltip tagName="span" content="This has a z-index of 5000" zIndex={5000} eventToggle="onClick">
z-index example
</Tooltip>
</section>
</div>

@@ -355,0 +364,0 @@ );

{
"name": "react-tooltip-lite",
"version": "1.11.0",
"version": "1.11.1",
"description": "React tooltip, focused on simplicity and performance",

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

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