
Description
react-bootstrap-modal is a React port of the Bootstrap modal, partly based on jschr's better Bootstrap modals. It reimplements the Twitter Bootstrap modal component in a way that fits React, and it builds on the original work of the react-bootstrap team. The package works with Bootstrap 3.3.4 and later. For earlier versions of Bootstrap 3, the README says you must override the modal backdrop styles to match the newer ones. Its features are scoped focus, stackable modals used with some constraints, animated feedback when someone tries to close a static modal, and a straightforward API that avoids the ModalTrigger and Overlay mixins. The Modal component takes props such as show, backdrop, keyboard, transition, attentionClass and container. A static backdrop is not dismissed by clicking it. Pressing the Esc key closes the modal by default, and the modal fades in and out unless you turn transitions off. You can also pass a react-transition-group v2 component to customize the animation. Styling comes in two CSS files: rbm-patch.css if you already include Bootstrap styles, or rbm-complete.css if you do not. The README also explains that you can adjust variables.less and compile your own CSS. The library suits React developers who want Bootstrap-style dialogs.…
Highlights
- Bootstrap modal reimplemented for React
- Scoped focus and stackable modals
- Static backdrop with animated feedback
- Simple API without ModalTrigger or Overlay
- Patch or complete stylesheet
Ratings & Reviews
No ratings yet
Be the first to rate react-bootstrap-modal.
People also visit
react-bootstrap-modal FAQ
What is react-bootstrap-modal?
A React port of the Bootstrap modal, based on jschr's better Bootstrap modals and the react-bootstrap team's work.
Which Bootstrap version does it need?
Bootstrap 3.3.4 or later. For earlier 3.x versions, the README says to override the modal-backdrop styles.
How do I stop a modal closing when I click outside it?
Set backdrop to static. A static backdrop is not dismissed by clicking it, and it plays an attention animation instead.
Can I turn off the fade animation?
Yes. Set transition to false, or pass a react-transition-group v2 component for a custom animation.
Do I need Bootstrap's CSS?
Not if you use rbm-complete.css. If you already include Bootstrap, include rbm-patch.css instead.
What are the best react-bootstrap-modal alternatives?
Popular alternatives to react-bootstrap-modal include react-modal, react-bootstrap and react-aria-modal. See all react-bootstrap-modal alternatives

















