Skip to content

flyon/react-bootstrap-typescript-definitions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

react-bootstrap-typescript-definitions

Typescript definitions for React Bootstrap

which may come in handy since jsx for typescript is not an option (yet)

is depending on react.d.ts from the DefinitlyTyped repo

just import react-bootstrap.min.js in your project or require('react-bootstrap') and use

     /// <reference path="path/to/react-bootstrap.d.ts" />
    declare var ReactBootstrap:ReactBootstrap;

and your editor should recognise and autocomplete things like:

ReactBootstrap.ButtonToolbar({},
    ReactBootstrap.ButtonGroup({},
        ReactBootstrap.Button({},
            ReactBoostrap.Glyphicon({glyph:'align-left'})
        ),
        ReactBootstrap.Button({},
            ReactBoostrap.Glyphicon({glyph:'align-center'})
        ),
        ReactBootstrap.Button({},
            ReactBoostrap.Glyphicon({glyph:'align-right'})
        )
    )
);

About

Typescript definitions for React Bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published