Socket
Socket
Sign inDemoInstall

@idot-digital/tooltips

Package Overview
Dependencies
0
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @idot-digital/tooltips

Custom styled tooltips for react


Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Install size
67.9 kB
Created
Weekly downloads
 

Readme

Source

tooltips

Custom styled tooltips for react

NPM JavaScript Style Guide

Install

npm install --save @idot-digital/tooltips
yarn add @idot-digital/tooltips

Usage

Possibility to pass a nodeRef or activate centerAtFirstChild in order to prevent wrong placement when using multiple elements inside Tooltip

import React from 'react'

import Tooltip from '@idot-digital/tooltips'
import '@idot-digital/tooltips/dist/index.css'

const Example = () => {
  return (
    <React.Fragment>
      <Tooltip
        text='Some tooltip text'
        className='Some classname'
        followMouse
        closeOnClick
      >
        Your component or text
      </Tooltip>
      <Tooltip
        text={
          <div>
            Some <b>ADVANCED</b> tooltip
          </div>
        }
        className='Some classname'
        followMouse
        closeOnClick
      >
        Your component or text
      </Tooltip>
    </React.Fragment>
  )
}

License

UNLICENSED © @idot-digital

FAQs

Last updated on 21 Apr 2021

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