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

react-hoverinfo

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hoverinfo

React tooltip wrapper

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-hoverinfo

It's React wrapper component which support tooltip

Install

npm install react-hoverinfo

Usage

Import react-hoverinfo after installation.

import React, { useState } from 'react';
import { Tooltip } from "react-hoverinfo";

function App() {
  const [html, setHtml] = useState("")
  return (
    <>
      <Tooltip id="main" />
    </>
  );
}

export default App;

Add data-tooltip-id="<tooltip id>" and data-tooltip-content="<your placeholder>" to your element.

import React, { useState } from 'react';

function Child() {
  return (
    <>
      <button data-tooltip-id="main" data-tooltip-content={"Notification"}>
        Button 1
      </button>
    </>
  );
}

export default App;

Available props

propdescriptiontype
idrequired: this is is used to detect the target elementString
classNameyou can add your classNameString

Support

If you are facing any issue, please contact via linkedin ( Libin Prasanth ).

Examples

Do you want to try react-hoverinfo before use ?

Example

Donate!

Like my Work! Donate

Keywords

FAQs

Package last updated on 28 Sep 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc