Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 832 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 832 Bytes

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>
};