react-css-tooltip
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-css-tooltip

css tooltip

DEMO

http://git.wxb.com/pages/shipnew/react-css-tooltip/public/index.html

Install

npm install --save @wxb/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 这种方式来实现效果。客户端编辑器就是通过这个 css 来实现 icon 鼠标移上去显示功能说明的。

License

MIT © Go7hic

Readme

Keywords

none

Package Sidebar

Install

npm i react-css-tooltip

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

1.81 MB

Total Files

49

Last publish

Collaborators

  • go7hic