RE

React Bootstrap

react-bootstrap

Bootstrap 5 components built with React

Component Libraries
bootstrap
react
component
components
ecosystem-react
react-component
react-bootstrap
Component Libraries
javascript
npm
Stars
23k
Weekly
1.4M
Open issues
237
Bundle
~25 kB

Installation

npm install react-bootstrap

Code example

import { Button } from "react-bootstrap";

export function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline">Secondary</Button>
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by Stephen J. Collings
  • 1.4M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 237 open issues on GitHub

FAQs

Alternatives & similar libraries