
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@tdcerhverv/dialog
Advanced tools
Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks
Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks.
import { Dialog, DialogButtonGroup } from '@tdcerhverv/dialog';
import { TextButton, DefaultButton } from '@tdcerhverv/button';
const DialogComponent = () => {
const $submitButton = React.createRef();
const [active, setActive] = React.useState(false);
const toggle = React.useCallback(() => {
setActive(s => !s);
}, []);
const handleCancel = () => {
// Handle cancel here
toggle();
};
const handleSubmit = () => {
// Handle submit here
};
return (
<Dialog
active={active}
closeLabel="Close"
heading="Delete user?"
description="This action cannot be undone."
handleSubmit={handleSubmit}
handleCancel={handleCancel}
autoFocus={$submitButton}
>
<DialogButtonGroup>
<TextButton type="button" onClick={handleCancel}>
Cancel
</TextButton>
<DefaultButton ref={$submitButton} type="submit">
Delete
</DefaultButton>
</DialogButtonGroup>
</Dialog>
);
};
interface DialogProps extends HTMLAttributes<HTMLDivElement> {
active: boolean;
autoFocus?: React.RefObject<HTMLElement>;
children: ReactElement;
closeLabel?: string;
description?: string;
dialogClassName?: string;
handleCancel?: () => void;
handleSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
heading?: ReactNode;
overlayClassName?: string;
}
FAQs
Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks
We found that @tdcerhverv/dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 29 open source maintainers 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.