
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-smart-popup
Advanced tools
simple popup created with react and typescrypt and styled components
this is a smart popup created by react and typeScrypt
The package can be installed via npm:
npm install react-smart-popup --save
Or via yarn:
yarn add react-smart-popup
import React, { useState, useCallback } from 'react';
import { popup } from 'react-smart-popup';
const App = () => {
const [isOpenDialog, setIsOpenDialog] = useState < boolean > false;
const openPopupFunc = useCallback(() => {
setIsOpenDialog(true);
}, [setIsOpenDialog]);
const handleSubmitFunc = useCallback(() => {
console.log('submit');
}, []);
const handleCloseFunc = useCallback(() => {
console.log('close');
}, []);
return (
<div>
<button onClick={openPopupFunc}>Open popup </button>
<Popup
isOpen={isOpenDialog}
setIsOpen={setIsOpenDialog}
handleSubmit={handleSubmitFunc}
handleClose={handleCloseFunc}
>
hello world
</Popup>
</div>
);
};
| Property | type | Default Value | Description |
|---|---|---|---|
| isOpen | Boolean | false | state of popup |
| setIsOpen | Func | change state of popup | |
| children | ReactNode | some children to show in popup body | |
| handleSubmit | Func | on press submit button handler | |
| handleClose | Func | on press close button handler | |
| closeOnPressEscape | Boolean | true | close active popup when press esc key |
| closeOnClickAway | Boolean | true | close popup when click outside |
| width | String | '50%' | popup width |
| height | String | '50%' | popup height |
| header | String | popup header |
FAQs
simple popup created with react and typescrypt and styled components
The npm package react-smart-popup receives a total of 5 weekly downloads. As such, react-smart-popup popularity was classified as not popular.
We found that react-smart-popup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.