
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
@acrool/react-dialog
Advanced tools
This is a dialog message function for React development dialog
@acrool/react-portal and framer-motionyarn add framer-motion @acrool/react-dialog
in your packages. (Make the version of styled-component you use match the version of styled-component used in acrool-react-gird)
"resolutions": {
"framer-motion": "^11.x"
}
add in your index.tsx
import "@acrool/react-dialog/dist/index.css";
add in your App.tsx
import {DialogPortal} from "@acrool/react-dialog";
const App = () => {
return (
<div>
<BaseUsed/>
<DialogPortal
localeDictionaries={{
'en-US': {
'com.dialog.success': 'Success',
'com.dialog.error': 'Danger',
'com.dialog.info': 'Info',
'com.dialog.warning': 'Warning',
'com.dialog.confirm': 'Confirm',
'com.dialog.ok': 'OK',
'com.dialog.cancel': 'Cancel',
}
}}
locale="en-US"
isVisibleStatusIcon
renderButton={args => createElement(Button, args, args.children)}
renderTextField={args => createElement(TextField, args, null)}
/>
</div>
);
};
then in your page
import {EStatus, toast} from '@acrool/react-dialog';
const Example = () => {
return (
<div>
<button type="button" onClick={() => dialog({message: 'step1 test dialog', code: 'TEST1'})}>
useDialog message
</button>
</div>
);
};
There is also a example that you can play with it:
FAQs
Dialog library based for Reactjs
The npm package @acrool/react-dialog receives a total of 47 weekly downloads. As such, @acrool/react-dialog popularity was classified as not popular.
We found that @acrool/react-dialog demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.