Skip to content

Commit d91af91

Browse files
committed
Update README.md
1 parent db1ae32 commit d91af91

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ React tooltip component, inspired by tooltipsy (a jquery plugin I've used)
77

88
### Installation
99

10-
```
10+
```sh
1111
npm install react-tooltip --save
1212
```
1313

1414
### Usage
1515

1616
1 . Require react-tooltip after installation
1717

18-
```
18+
```js
1919
var ReactTooltip = require("react-tooltip")
2020
```
2121
2 . Include css or scss file(you can find them in dist folder) into your project
2222

23-
```
23+
```js
2424
sass: @import "react-tooltip";
2525
```
2626

@@ -31,7 +31,7 @@ sass: @import "react-tooltip";
3131
4 . Including react-tooltip component
3232

3333

34-
```
34+
```js
3535
<ReactTooltip />
3636
```
3737

@@ -45,7 +45,7 @@ Check example: [React-tooltip Test](http://wwayne.github.io/react-tooltip)
4545

4646
##### Place: String [ top, right, bottom, left ]
4747

48-
```
48+
```js
4949
Specific element:
5050
<p data-tip="tooltip" data-place="top"></p>
5151

@@ -54,7 +54,7 @@ global:
5454
```
5555
##### Type: String [ dark, success, warning, error, info, light ]
5656

57-
```
57+
```js
5858
Specific element:
5959
<p data-tip="tooltip" data-type="dark"></p>
6060

@@ -63,7 +63,7 @@ global:
6363
```
6464
##### Effect: String [ float, solid ]
6565

66-
```
66+
```js
6767
Specific element:
6868
<p data-tip="tooltip" data-type="float"></p>
6969

0 commit comments

Comments
 (0)