Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Clerk inspired floating toast button for confirmation of actions, powered by Sonner
https://github.com/user-attachments/assets/3265c2b3-e8f6-4554-8687-9c9e4267d479
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
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.0
FAQs
Clerk inspired floating toast button for confirmation of actions, powered by Sonner
The npm package aero-nudge receives a total of 174 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.