
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
swipe-menu-react
Advanced tools
A simple React swipe menu component that supports touch screens and mouse operations. Live Demo
npm install swipe-menu-react
# or
yarn add swipe-menu-react
# or
pnpm add swipe-menu-react
import type { Config } from "tailwindcss";
export default {
content: [
...
"./node_modules/swipe-menu-react/dist/**/*.{js,ts,jsx,tsx}", // ⚠ Add this line
],
...
} satisfies Config;
@import "tailwindcss";
@source '../node_modules/swipe-menu-react/dist/**/*.{js,ts,jsx,tsx}'; // ⚠ Add this line
import { SwipeMenu } from 'swipe-menu-react';
import { Icon } from "@iconify/react";
function App() {
return (
<SwipeMenu
className="w-md gap-1 p-1"
asideClassName="flex items-center gap-1"
maxWidth="6rem"
aside={
<>
<button className="text-blue-500 text-2xl">
<Icon icon="lucide:edit" />
</button>
<button className="text-red-500 text-2xl">
<Icon icon="lucide:trash-2" />
</button>
</>
}>
<button className="truncate w-full h-full text-start">
A Simple Description to test the swipe menu
</button>
</SwipeMenu>
);
}
| Property | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | - | Main content |
| aside | React.ReactNode | - | Side content shown when swiped |
| maxWidth | string | '18rem' | Maximum width of side content |
| className | string | - | Additional class name for the root element |
| mainClassName | string | - | Additional class name for the main content area |
| asideClassName | string | - | Additional class name for the side content area |
MIT
FAQs
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.