Skip to content

Commit 1bcd50d

Browse files
committed
update README
1 parent 0df0f95 commit 1bcd50d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ CSS for button that loads. check https://loading.io/button/ for more information
44

55
# usage
66

7-
1. include ldbtn.css and loading.css:
7+
install with npm:
88

9-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/loadingio/[email protected]/dist/ldbtn.css"/>
9+
npm install --save ldbutton
1010

11+
include required css file ( you may also need loading.css for spinner related css ):
1112

12-
2. add class for one of the desired effect to your button, along with a loader inside:
13+
<link rel="stylesheet" type="text/css" href="path-to-ldbutton-css-file"/>
14+
15+
16+
add class for one of the desired effect to your button, along with a loader inside:
1317

1418
<div class="btn btn-primary ld-ext-right">
1519
<div class="ld ld-ball ld-bounce"></div>
@@ -24,7 +28,7 @@ CSS for button that loads. check https://loading.io/button/ for more information
2428
<div class="ld ld-ball ld-bounce"></div>
2529
</div>
2630

27-
You can also use [ldLoader](https://loading.io/lib/loader/) to manipulate loader's state.
31+
You can also use [ldloader](https://loading.io/lib/loader/) to manipulate loader's state.
2832

2933
For more information about how to use loading buttons, please check the [online documentation here](https://loading.io/button/).
3034

0 commit comments

Comments
 (0)