Socket
Socket
Sign inDemoInstall

react-auto-tooltip

Package Overview
Dependencies
13
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-auto-tooltip

Tooltip component for react


Version published
Maintainers
1
Install size
2.43 MB
Created

Readme

Source

react-auto-tooltip

Tooltip component for react

NPM JavaScript Style Guide

The position of the tooltip is calculated automatically.

Install

npm install --save react-auto-tooltip

Usage

import { Tooltip } from 'react-auto-tooltip';

<Tooltip message="Tooltip message">hello</Tooltip>;

Live Demo

props

NameTypeDefaultDescription
visiblebooleanWhether the floating tooltip card is visible or not
messageReactNodeThe text shown in the tooltip
clickModebooleanfalseTooltip trigger click mode
defaultVisiblebooleanfalseWhether the floating tooltip is visible by default
zIndexnumber1000Config z-index of Tooltip
backgroundColorstringrgba(0, 0, 0, 0.9)The background color
styleCSSProperties
classNamestring
onVisible(visible: boolean) => voidCallback executed when visibility of the tooltip card is changed
onClickMessage() => voidSet the handler to handle click tooltip message

License

MIT © almond-bongbong

Keywords

FAQs

Last updated on 12 Jan 2022

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