🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

react-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
356
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tooltip

react tooltip component

Source
npmnpm
Version
0.1.8
Version published
Weekly downloads
1.3M
-15.72%
Maintainers
1
Weekly downloads
 
Created
Source

react-tooltip

React tooltip component, inspired by tooltipsy (a jquery plugin I've used)

Version

Installation

npm install react-tooltip --save

Usage

1 . Require react-tooltip after installation

var ReactTooltip = require("react-tooltip")

2 . Include css or scss file(you can find the file in dist folder) into your project

sass: @import "react-tooltip";

3 . Add data-placeholder = "your placeholder" to your element

<p data-placeholder="hello world">Tooltip</p>

4 . Including react-tooltip component

<ReactTooltip />

Example

http://wwayne.github.io/react-tooltip

'use strict';

var React = require("react");
var ReactTooltip = require("../index");

var Index = React.createClass({
  render: function() {
    return (
      <section className="tooltip-example">
        <p data-placeholder="foo">hover on me</p>
        <p data-placeholder="This is another hover test" data-place="bottom">Tooltip from bottom</p>
        <ReactTooltip />
      </section>
    )
  }
});

React.render(<Index />,document.body)

License

MIT

Keywords

react

FAQs

Package last updated on 14 May 2015

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