@ahrefs/bs-reactstrap

1.0.3 • Public • Published

bs-reactstrap

These are Bucklescript bindings for Reactstrap. Currently they are autogenerated based on propTypes. Everything complex (basically not string or bool) is just type variable. 🚧 It is not completed, we are adding bindings as we go. Doesn't follow semver at this point. 🚧

Install, npm

yarn add @ahrefs/bs-reactstrap

Setup

Add @ahrefs/bs-reactstrap to bs-dependencies in your bsconfig.json!

{
  /* ... */
  "bs-dependencies": [
    "@ahrefs/bs-reactstrap"
  ],
  /* ... */
}

Usage Example

open BsReactstrap;

let component = ReasonReact.statelessComponent("SomeComponent");

let make = (~onClick, _children) => {
  ...component,

  render: _self => {
    <Button color="primary" size="lg" onClick> "Hello" </Button>;
  },
};

Check Reactstrap documentation for available props.

Package Sidebar

Install

npm i @ahrefs/bs-reactstrap

Weekly Downloads

13

Version

1.0.3

License

MIT

Unpacked Size

71.9 kB

Total Files

76

Last publish

Collaborators

  • denstr
  • bryanthomaschen
  • khady
  • rustykey
  • liubko
  • feihong
  • jchavarri
  • zindel
  • germes