Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rescriptbr/react-bootstrap

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rescriptbr/react-bootstrap

Rescript bindings for ReactBootstrap

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
4
Weekly downloads
 
Created
Source



InstallationExamples



Installation

First you need to install react-bootstrap as their documentation.

Basically you'll need to run these commands:

# with npm
npm add react-bootstrap@next bootstrap@5.1.0

# with yarn
yarn add react-bootstrap@next bootstrap@5.1.0

Then, you'll need to import bootstrap styles into your app:

// App.js

import "bootstrap/dist/css/bootstrap.min.css";

Finally you can install this package running these commands:

# with npm
npm add -D @rescript/react-bootstrap

# with yarn
yarn add -D @rescript/react-bootstrap

Examples

Basic Form

module Form = ReactBootstrap.Form
module Button = ReactBootstrap.Button
module Container = ReactBootstrap.Container

@react.component
let make = () => {
  <Container>
    <Form>
      <Form.Group>
        <Form.Label> {`Email`->React.string} </Form.Label>
        <Form.Control _type="email" />
      </Form.Group>

      <Form.Group>
        <Form.Label> {`Senha`->React.string} </Form.Label>
        <Form.Control _type="password" />
      </Form.Group>

      <Button size=#lg _type=#submit>
        {`Acessar`->React.string}
      </Button>
    </Form>
  </Container>
}

Keywords

FAQs

Package last updated on 12 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc