bs-react-trello

0.1.59 • Public • Published

bs-react-trello

This is Bucklescript bindings for react-trello.

Install

yarn add bs-react-trello

Setup

Add bs-react-trello to bs-depenencies in your bsconfig.json!

{
  /* ... */
  "bs-dependencies": [
    "bs-react-trello"
  ],
  /* ... */
}

Example

let data = [|
  ReactTrello.Lane.t(
    ~id="title1",
    ~label="title1 label",
    ~addCardLink=React.string("title 1 addCardLink"),
    ~cards=[|
      ReactTrello.Card.t(
        ~id="t1 card1",
        ~title="t1 title1",
        ~description="t1 description",
        (),
      ),
      ReactTrello.Card.t(
        ~id="t2 card1",
        ~title="t2 title1",
        ~description="t2 description",
        (),
      ),
    |],
    (),
  ),
  ReactTrello.Lane.t(
    ~id="title2",
    ~label="title2 label",
    ~addCardLink=React.string("title 2 addCardLink"),
    ~cards=[||],
    (),
  ),
|];
 
[@react.component]
let make = () =>
  <div className="container"> <ReactTrello data={"lanes": data} /> </div>;
 

Package Sidebar

Install

npm i bs-react-trello

Weekly Downloads

2

Version

0.1.59

License

MIT

Unpacked Size

16 kB

Total Files

6

Last publish

Collaborators

  • jakubmarkiewicz