
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.
dynamic-dock
Advanced tools
A React component for creating a dynamic dock menu, mimicking the macOS dock style.
#Dynamic Dock
Dynamic Dock is an innovative React component that transforms your images to mimic the iconic macOS dock style. By integrating this component into your web application, you can elevate the user interface with a visually appealing and intuitive dock-like experience, reminiscent of the macOS operating system. This enhancement not only improves aesthetic appeal but also enhances user interaction by providing a familiar and efficient way to navigate through images and content.
To get started with dynamic-dock, you need to install it into your project using npm:
npm i dynamic-dock
To use the Dynamic Dock component, you need to import it into your React application and use it as a wrapper for the images you want to display in the dock. The following example demonstrates how to use the Dynamic Dock component in a React application:
"use client";
import React from "react";
import Image from "next/image";
import DynamicDock from "dynamic-dock";
function Dock() {
return (
<DynamicDock gapX={10} imageWidth={100}>
<Image
src="https://svgl.app/library/github.svg"
alt="Github Image"
width={100}
height={100}
/>
<Image
src="https://svgl.app/library/typescript.svg"
alt="TypeScript Image"
width={100}
height={100}
/>
<Image
src="https://svgl.app/library/react.svg"
alt="React Image"
width={100}
height={100}
/>
<Image
src="https://svgl.app/library/npm.svg"
alt="NPM Image"
width={100}
height={100}
/>
<Image
src="https://svgl.app/library/vitejs.svg"
alt="ViteJs Image"
width={100}
height={100}
/>
</DynamicDock>
);
}
export default Dock;
| Name | Description | Type | Unit |
|---|---|---|---|
| gapX | Horizontal spacing between images | Number | px |
| imageWidth | Width of each image | Number | px |
| direction | Direction of images | row, column | none |
| justifyContent | Justify content of images | center, start, end, space-between, space-around | none |
| alignItems | Align items of images | center, start, end, stretch | none |
FAQs
A React component for creating a dynamic dock menu, mimicking the macOS dock style.
The npm package dynamic-dock receives a total of 3 weekly downloads. As such, dynamic-dock popularity was classified as not popular.
We found that dynamic-dock demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.