New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-simple-dialogs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-dialogs - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

3

package.json
{
"name": "react-simple-dialogs",
"private": false,
"version": "1.1.0",
"version": "1.2.0",
"author": "Pedro Henrique Pires",

@@ -74,3 +74,2 @@ "license": "MIT",

"eslint-plugin-react-refresh": "^0.4.3",
"framer-motion": "^10.13.0",
"husky": "^8.0.3",

@@ -77,0 +76,0 @@ "jsdom": "^22.1.0",

@@ -55,3 +55,3 @@ <div align="center">

Use the dialogs is almost like use the dialogs native function (`alert`, `confirm` and `prompt`).
Using the dialogs is almost like using the native dialogs function (`alert`, `confirm` and `prompt`).

@@ -97,1 +97,21 @@ > All dialog function will return an `Promise` that only resolves when the user interacts with the dialog, so you can wait for the user interaction to continue your code execution.

```
## Modal Dialog
```tsx
import { simpleModal } from 'react-simple-dialogs'
const showPrompt = async () => {
await simpleModal(closeFn => (
<div>
<h1>My modal</h1>
<p>My modal content, I can use this for anything I want!</p>
<button onClick={closeFn}>Close</button>
</div>
))
console.log('Modal was closed')
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc