MCPcopy
hub / github.com/react-bootstrap/react-bootstrap

github.com/react-bootstrap/react-bootstrap @v2.10.10 sqlite

repository ↗ · DeepWiki ↗ · release v2.10.10 ↗
597 symbols 1,800 edges 530 files 5 documented · 1%
README

React-Bootstrap

Bootstrap 5 components built with React.

GitHub Actions CI status Travis CI Build status npm Codecov Discord Netlify

Bootstrap compatibility

React-Bootstrap is compatible with various versions of Bootstrap. As such, you need to ensure you are using the correct combination of versions.

See the below table on which version of React-Bootstrap you should be using in your project.

Bootstrap Version React-Bootstrap Version Documentation
v5.x 2.x Link
v4.x 1.x (not maintained) Link
v3.x 0.33.x (not maintained) Link

Migrating from previous versions

Bootstrap 4 to Bootstrap 5

If you would like to update React-Bootstrap within an existing project to use Bootstrap 5, please read our docs for migrating to React-Bootstrap V2.

Bootstrap 3 to Bootstrap 4

If you would like to update React-Bootstrap within an existing project to use Bootstrap 4, please read our docs for migrating to React-Bootstrap V1.

Related modules

Local setup

Yarn is our package manager of choice here. Check out setup instructions here if you don't have it installed already. After that you can run yarn run bootstrap to install all the needed dependencies.

From there you can:

  • Run the tests once with yarn test (Or run them in watch mode with yarn run tdd).
  • Start a local copy of the docs site with yarn start
  • Or build a local copy of the library with yarn run build

CodeSandbox Examples

Click here to explore some React-Bootstrap CodeSandbox examples.

Click here to automatically open CodeSandbox with the React-Bootstrap CodeSandbox Examples GitHub Repository as a workspace.

Contributions

Yes please! See the contributing guidelines for details.

Extension points exported contracts — how you extend this code

ExampleCarouselImageProps (Interface)
(no doc)
www/src/components/ExampleCarouselImage.tsx
BootstrapMetadata (Interface)
(no doc)
www/plugins/bootstrap-metadata-plugin.ts
ToastProps (Interface)
(no doc)
src/Toast.tsx
AccordionItemProps (Interface)
(no doc)
src/AccordionItem.tsx
PopoverHeaderProps (Interface)
(no doc)
src/PopoverHeader.tsx
NavProps (Interface)
(no doc)
src/Nav.tsx
SplitButtonProps (Interface)
(no doc)
src/SplitButton.tsx
TabContainerProps (Interface)
(no doc)
src/TabContainer.tsx

Core symbols most depended-on inside this repo

useBootstrapPrefix
called by 99
src/ThemeProvider.tsx
getDropdownMenuPlacement
called by 22
src/DropdownMenu.tsx
createChainedFunction
called by 12
src/createChainedFunction.tsx
getToast
called by 9
test/ToastSpec.tsx
normalize
called by 7
src/TransitionWrapper.tsx
add
called by 6
test/ModalSpec.tsx
createModal
called by 6
test/BootstrapModalManagerSpec.ts
map
called by 6
src/ElementChildren.tsx

Shape

Function 402
Interface 141
Class 34
Method 20

Languages

TypeScript100%

Modules by API surface

src/Modal.tsx16 symbols
www/src/theme/Admonition/index.tsx9 symbols
test/OverlayTriggerSpec.tsx9 symbols
test/ModalSpec.tsx9 symbols
tests/simple-types-test.tsx8 symbols
src/ThemeProvider.tsx8 symbols
src/helpers.ts7 symbols
src/Offcanvas.tsx7 symbols
src/BootstrapModalManager.tsx7 symbols
www/src/theme/Playground/index.tsx6 symbols
tools/build.js6 symbols
test/OffcanvasSpec.tsx6 symbols

Dependencies from manifests, versioned

@4c/rollout4.0.2 · 1×
@4c/tsconfig0.4.1 · 1×
@babel/cli7.23.4 · 1×
@babel/core7.23.5 · 1×
@babel/preset-typescript7.23.3 · 1×
@babel/register7.22.15 · 1×
@babel/runtime7.24.7 · 1×
@docusaurus/babel3.6.3 · 1×
@docusaurus/core3.6.3 · 1×
@docusaurus/module-type-aliases3.6.3 · 1×
@docusaurus/preset-classic3.6.3 · 1×
@docusaurus/theme-common3.6.3 · 1×

For agents

$ claude mcp add react-bootstrap \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact