File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 1
1
react-bootstrap-typescript-definitions
2
2
======================================
3
3
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
+
You can’t perform that action at this time.
0 commit comments