Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 599 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 599 Bytes

react-css-tooltip

css tooltip

DEMO

Install

npm install --save react-css-tooltip

Usage

import React, { Component } from 'react'

import ReactCssTooltip from 'react-css-tooltip'
import 'react-css-tooltip/dist/index.css';

class Example extends Component {
  render () {
    return (
      <ReactCssTooltip placement="top" text="wxbtop">test</ReactCssTooltip>
    )
  }
}

非 react 应用也可以直接引用 css 文件,给对应的 dom元素添加class tooltip top 这种方式来实现效果。

License

MIT © Go7hic