Skip to content

shanewilson/bs-blueprintjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bs-blueprintjs

Note: these are bindings to the Blueprint.js UI toolkit. These are a thin typed wrapper to let you use Blueprintjs Components in bucklescript.

Documentation

Installation:

npm install --save @blueprintjs/core
npm install --save-dev @bs-blueprintjs/core
// bsconfig.json

"bs-dependencies": [
  "reason-react",
  "@bs-blueprintjs/core"
]

Example usage:

let component = ReasonReact.statelessComponent "App";

let make ::message _children => {
  ...component,
  render: fun _self =>
    <div className="App">
        <Blueprintjs.Button
          text="Click"
          rightIconName="search"
          disabled=false
          intent=Blueprintjs.Intent.PRIMARY
          onClick=(fun evt => Js.log evt)
        />
    </div>
};

About

Reason + BuckleScript bindings to Blueprint.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages