
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Clerk inspired floating toast button for confirmation of actions, powered by Sonner
https://github.com/user-attachments/assets/e08b7922-b931-445c-b1f3-f826cb2215c7
Clerk inspired floating toast button for confirmation of actions, powered by Sonner.
npm install aero-nudge
# or
yarn add aero-nudge
# or
pnpm add aero-nudge
Please make sure to install sonner and import the Toaster component into your root layout first! More instructions here
import { Toaster, toast } from 'sonner';
// ...
function App() {
return (
<div>
<Toaster />
<button onClick={() => toast('My first toast')}>Give me a toast</button>
</div>
);
}
import useActionToast from 'aero-nudge';
const MyComponent = () => {
const handleAction = async () => {
// Your action logic here
};
const handleReset = () => {
// Your reset logic here
};
useActionToast({
onAction: handleAction,
onReset: handleReset,
isLoading: false,
show: true,
description: 'Optional description'
});
return (
// Your component JSX
);
};
useActionToast
HookThis hook creates a floating toast button for confirming actions.
onAction
: () => Promise<void>
- Function to call when the "Save" button is clicked.onReset
: () => void
- (Optional) Function to call when the "Reset" button is clicked.isLoading
: boolean
- Whether the action is in progress.show
: boolean
- Whether to show the toast.description
: string
- (Optional) Additional description to show in the toast.MIT
Elliott Chong
1.2.1
FAQs
Clerk inspired floating toast button for confirmation of actions, powered by Sonner
The npm package aero-nudge receives a total of 2 weekly downloads. As such, aero-nudge popularity was classified as not popular.
We found that aero-nudge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.