A lightweight and simple tooltip component for React
A lightweight and simple tooltip component for React.
react-simple-tooltip
[![npm package][npm-badge]][npm] [![Travis][build-badge]][build] [![Codecov][codecov-badge]][codecov] ![Module formats][module-formats]
A lightweight and simple tooltip component for React
Getting started
You can download react-simple-tooltip
from the NPM registry via the npm
or yarn
commands
yarn add react-simple-tooltip
npm install react-simple-tooltip --save
If you don't use package manager and you want to include react-simple-tooltip
directly in your html, you could get it from the UNPKG CDN
https://unpkg.com/react-simple-tooltip/dist/react-simple-tooltip.min.js.
Usage
Attached to a Component
import React from "react"
import Tooltip from "react-simple-tooltip"
const App = () => (
<Tooltip content="