
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@acrool/react-dialog
Advanced tools
This is a dialog message function for React development dialog
@acrool/react-portal and framer-motionyarn add @acrool/react-dialog
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
locale={{
'com.dialog.success': 'Success',
'com.dialog.danger': 'Danger',
'com.dialog.info': 'Info',
'com.dialog.warning': 'Warning',
'com.dialog.confirm': 'Confirm',
'com.dialog.ok': 'OK',
'com.dialog.cancel': 'Cancel',
}}
// locale="ja-JP" // this is use default locale dictionaries
isVisibleStatusIcon
renderButton={(args) => {
return <Button
className={args.className}
children={args.children}
color={args.color}
onClick={args.onClick}
isBlock
size="md"
/>;
}}
renderTextField={(args) => {
return <TextField
{...args}
isAutoFocus
/>;
}}
/>
</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 39 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
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

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.