Gathering detailed insights and metrics for reactstrap
Gathering detailed insights and metrics for reactstrap
Gathering detailed insights and metrics for reactstrap
Gathering detailed insights and metrics for reactstrap
npm install reactstrap
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
10,580 Stars
1,364 Commits
1,300 Forks
163 Watching
30 Branches
265 Contributors
Updated on 28 Nov 2024
JavaScript (82.4%)
TypeScript (16.49%)
MDX (0.86%)
Shell (0.21%)
HTML (0.04%)
Cumulative downloads
Total Downloads
Last day
-6.1%
80,334
Compared to previous day
Last week
4.7%
469,877
Compared to previous week
Last month
-0.1%
1,963,940
Compared to previous month
Last year
-4.5%
24,550,638
Compared to previous year
53
Stateless React Components for Bootstrap 5.
If you're using Bootstrap 4, you'll need to use Reactstrap v8
Follow the create-react-app instructions to get started and then follow the reactstrap version of adding bootstrap.
npx create-react-app my-app
cd my-app/
npm start
or, if npx (Node >= 6 and npm >= 5.2 ) not available
npm install -g create-react-app
create-react-app my-app
cd my-app/
npm start
Then open http://localhost:3000/ to see your app. The initial structure of your app is setup. Next, let's add reactstrap and bootstrap.
Install reactstrap and Bootstrap from NPM. Reactstrap does not include Bootstrap CSS so this needs to be installed as well:
npm i bootstrap
npm i reactstrap react react-dom
Import Bootstrap CSS in the src/index.js
file:
1import 'bootstrap/dist/css/bootstrap.css';
Import required reactstrap components within src/App.js
file or your custom component files:
1import { Button } from 'reactstrap';
Now you are ready to use the imported reactstrap components within your component hierarchy defined in the render
method. Here is an example App.js
redone
using reactstrap.
These libraries are not bundled with Reactstrap and required at runtime:
This library contains React Bootstrap components that favor composition and control. The library does not depend on jQuery or Bootstrap javascript. However, Poppers.js via react-popper is relied upon for advanced positioning of content like Tooltips, Popovers, and auto-flipping Dropdowns.
There are a few core concepts to understand in order to make the most out of this library.
Your content is expected to be composed via props.children rather than using named props to pass in Components.
1// Content passed in via props 2const Example = (props) => { 3 return ( 4 <p>This is a tooltip <TooltipTrigger tooltip={TooltipContent}>example</TooltipTrigger>!</p> 5 ); 6} 7 8// Content passed in as children (Preferred) 9const PreferredExample = (props) => { 10 return ( 11 <p> 12 This is a <a href="#" id="TooltipExample">tooltip</a> example. 13 <Tooltip target="TooltipExample"> 14 <TooltipContent/> 15 </Tooltip> 16 </p> 17 ); 18}
Attributes in this library are used to pass in state, conveniently apply modifier classes, enable advanced functionality (like tether), or automatically include non-content based elements.
Examples:
isOpen
- current state for items like dropdown, popover, tooltiptoggle
- callback for toggling isOpen
in the controlling componentcolor
- applies color classes, ex: <Button color="danger"/>
size
- for controlling size classes. ex: <Button size="sm"/>
tag
- customize component output by passing in an element name or Componentvisually-hidden
contentDocumentation search is powered by Algolia's DocSearch.
Here are some ready-to-go examples for CodeSandbox that you can experiment with.
https://github.com/reactstrap/code-sandbox-examples
Install dependencies:
1yarn install
Run examples at http://localhost:8080/ with webpack dev server:
1yarn start
Run tests & coverage report:
1yarn cover
Watch tests:
1yarn test
Release branches/versioning/notes will be automatically created and maintained by the release-please github action. When you're ready to publish the release, just merge the release branch. The release will be created, the new package will be published, and the updated docs will be deployed to https://reactstrap.github.io/.
Organizations and projects using reactstrap
reactstrap
with paging, sorting, filtering, grouping, selection, editing and virtual scrolling features.reactstrap
that visualizes data using a variety of series types, including bar, line, area, scatter, pie, and more.reactstrap
input component integrate seamlessly using Formik
Submit a PR to add to this list!
Looking to build, document and publish reusable components built on top of reactstrap
? Consider forking https://github.com/reactstrap/component-template to kickstart your project!
No vulnerabilities found.
Reason
all changesets reviewed
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
68 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More