Giter VIP home page Giter VIP logo

bs-react-bootstrap's Introduction

bs-react-bootstrap

Introduction

This is BuckleScript bindings for React-Bootstrap

WIP - Feel free to send PR and help improve it.

Installation

  • With npm:
npm install --save bs-react-bootstrap
  • With Yarn
yarn add bs-react-bootstrap
  • Add bs-react-bootstrap to bs-dependencies on your bsconfig.json
  • Include Bootstrap CSS into your index.html
<link
  rel="stylesheet"
  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
  integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
  crossorigin="anonymous"
>

Note

As you are using React Bootstrap it's not necessary to import any jQuery stuff.

Usage

Please refer to React Bootstrap Documentation for each component Spec.

Some specif patterns:

  • enums ⏩ polymorphic variants see on sample

Legend

πŸ”— Binding
βœ… Done
❌ Not implemented yet
⚠️ WIP

πŸ”— ❌ Alerts
πŸ”— ❌ Badge
πŸ”— ❌ Breadcrumb
πŸ”— ❌ Buttons
πŸ”— ❌ Button Group
πŸ”— ❌ Cards
πŸ”— ❌ Carousel
πŸ”— ❌ Dropdowns
πŸ”— ❌ Forms
πŸ”— ❌ Input Group
πŸ”— ❌ Images
πŸ”— ❌ Figures
πŸ”— ❌ Jumbotron
πŸ”— ❌ List Group
πŸ”— ❌ Modal
πŸ”— ⚠️ Navs
πŸ”— βœ…Navbar
πŸ”— ❌ Overlays
πŸ”— ❌ Pagination
πŸ”— ❌ Popovers
πŸ”— ❌ Progress
πŸ”— ❌ Table
πŸ”— ❌ Tabs
πŸ”— ❌ Tooltips

Sample: Navbar

open ReactBootstrap;

let component = "App" |> ReasonReact.statelessComponent;

let make = _children => {
  ...component,
  render: _self =>
    <div className="App container">
      <Navbar fixed=`top fluid=true collapseOnSelect=true>
        <Navbar.Brand>
          <a href="/">
            {string("Scratch")}
          </a>
        </Navbar.Brand>
        <Navbar.Toggle />
        <Navbar.Collapse>
          <Nav pullRight=true>
            <Nav.Item href="signup">
              {string("Sign Up")}
            </Nav.Item>
            <Nav.Item href="login">
              {string("Log In")}
            </Nav.Item>
          </Nav>
        </Navbar.Collapse>
      </Navbar>
      <Routes />
    </div>,
};

bs-react-bootstrap's People

Contributors

daniloraisi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.