Gathering detailed insights and metrics for reactstrap-confirm
Gathering detailed insights and metrics for reactstrap-confirm
Gathering detailed insights and metrics for reactstrap-confirm
Gathering detailed insights and metrics for reactstrap-confirm
npm install reactstrap-confirm
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
18 Stars
64 Commits
7 Forks
3 Watching
18 Branches
4 Contributors
Updated on 11 May 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
2.4%
168
Compared to previous day
Last week
-4.3%
886
Compared to previous week
Last month
-22.6%
3,940
Compared to previous month
Last year
-21.3%
50,981
Compared to previous year
1
3
45
An easy to use promise based confirm dialog for reactstrap.
The objective of this package is to offer a simple and easy way for developers to show confirm dialogs within their apps without having to worry about states or having to repeat the same components in many places.
Demo: https://algm.github.io/reactstrap-confirm
Simply use npm
1npm i --save reactstrap-confirm
You can use yarn as well
1yarn add reactstrap-confirm
You must manually install react, react-dom and reactstrap in your project in order for this module to work correctly.
Simply, import the module and call it as a function anywhere in your code.
1import confirm from "reactstrap-confirm"; 2 3// ...code 4 5let result = await confirm(); //will display a confirmation dialog with default settings 6 7console.log(result); //if the user confirmed, the result value will be true, false otherwhise
You can also pass options to the confirm function:
1confirm({ 2 title: ( 3 <> 4 Content can have <strong>JSX</strong>! 5 </> 6 ), 7 message: "This is a custom message", 8 confirmText: "Custom confirm message", 9 confirmColor: "primary", 10 cancelColor: "link text-danger" 11});
The above example will render a customized dialog.
Option | Effect | Default value |
---|---|---|
message | Sets the message body of the confirmation dialog | Are you sure? |
title | Sets the title of the dialog window | Warning! |
confirmText | Sets the text of the confirm button | Ok |
cancelText | Sets the text of the cancel button | Cancel |
confirmColor | Sets the color class of the confirm button (see reactstrap docs) | primary |
cancelColor | Sets the color class of the cancel button (see reactstrap docs) | empty |
size | Sets the size property for the modal component (see reactstrap docs) | empty |
buttonsComponent | Can receive a component for rendering the buttons. The component will receive the onClose function as a prop. | empty |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
96 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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