Skip to content

Commit 293bc4f

Browse files
committed
added some info about usage
1 parent fb1af51 commit 293bc4f

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
11
react-bootstrap-typescript-definitions
22
======================================
33

4-
Typescript definitions for React Bootstrap
4+
Typescript definitions for [React Bootstrap](http://react-bootstrap.github.io/)
5+
6+
just import react-bootstrap.min.js in your project or require('react-bootstrap')
7+
and use
8+
```
9+
/// <reference path="path/to/react-bootstrap.d.ts" />
10+
declare var ReactBootstrap:ReactBootstrap;
11+
```
12+
and your editor should recognise and autocomplete things like:
13+
```
14+
ReactBootstrap.ButtonToolbar({},
15+
ReactBootstrap.ButtonGroup({},
16+
ReactBootstrap.Button({},
17+
ReactBoostrap.Glyphicon({glyph:'align-left'})
18+
),
19+
ReactBootstrap.Button({},
20+
ReactBoostrap.Glyphicon({glyph:'align-center'})
21+
),
22+
ReactBootstrap.Button({},
23+
ReactBoostrap.Glyphicon({glyph:'align-right'})
24+
)
25+
)
26+
);
27+
```
28+
29+
30+
31+
32+

0 commit comments

Comments
 (0)