This repository contains a library of reusable React components extracted from the BigBlueButton (BBB) core project. These components provide a consistent, customizable interface that can be reused in other projects, allowing them to easily adopt the BBB visual identity.
This library is under active development and not yet published on npm. For now, you can clone the repository and install it locally.
npm install
npm run build-bundle
When developing and testing locally with npm link, you may need to adjust your Webpack configuration to ensure compatibility with styled-components and react, which doesn't handle multiple instances well. Add the following alias configuration to the project that uses this lib:
resolve: {
alias: {
'styled-components': path.resolve('./node_modules/styled-components'),
react: path.resolve('./node_modules/react'),
'react-dom': path.resolve('./node_modules/react-dom'),
},
}
Component Name | Final Name | Migration Status |
---|---|---|
Button |
BBButton |
🟡 |
Checkbox |
`` | ❌ |
ControlHeader |
`` | ❌ |
FileReader |
`` | ❌ |
Icon |
`` | ❌ |
Dropdown |
`` | ❌ |
BBBMenu |
`` | ❌ |
Modal |
`` | ❌ |
Radio |
`` | ❌ |
Separator |
`` | ❌ |
Switch |
BBBToggle |
🟡 |
Spinner |
`` | ❌ |
Toast |
`` | ❌ |
Tooltip |
`` | ❌ |
TextAreaInput |
BBBTextAreaInput |
✅ |
- colors
- sizes
- label
- ghost
- circle
- block
- icon
- svgIcon
- iconRight
- hideLabel
- customIcon
- loading
- On/Off labels