Skip to content

Commit d68625a

Browse files
authored
Update README.md
1 parent b00dc56 commit d68625a

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.md

+34-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
## react-cc-tooltip
1+
# react-css-tooltip
22

3+
> css tooltip
4+
5+
6+
## DEMO
7+
8+
## Install
9+
10+
```bash
11+
npm install --save react-css-tooltip
12+
```
13+
14+
## Usage
15+
16+
```jsx
17+
import React, { Component } from 'react'
18+
19+
import ReactCssTooltip from 'react-css-tooltip'
20+
import 'react-css-tooltip/dist/index.css';
21+
22+
class Example extends Component {
23+
render () {
24+
return (
25+
<ReactCssTooltip placement="top" text="wxbtop">test</ReactCssTooltip>
26+
)
27+
}
28+
}
29+
```
30+
31+
非 react 应用也可以直接引用 css 文件,给对应的 dom元素添加class `tooltip top` 这种方式来实现效果。
32+
33+
## License
34+
35+
MIT © [Go7hic](https://github.com/Go7hic)

0 commit comments

Comments
 (0)