
Security News
Risky Biz Podcast: AI Agents Are Raising the Stakes for Software Supply Chain Security
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.
react-push-dot-grid
Advanced tools
A React canvas component that creates an interactive dot grid with push/pull mouse effects
An interactive React canvas component that creates a dot grid with push/pull mouse effects.
npm install react-push-dot-grid
import { PushDotGrid } from "react-push-dot-grid";
function App() {
return (
<div style={{ width: "100%", height: "400px" }}>
<PushDotGrid type="push" dotSpace={28} dotRadius={1} strength={0.35} />
</div>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
type | "push" | "pull" | "push" | Direction of the mouse effect |
dotSpace | number | 28 | Spacing between dots in pixels |
dotRadius | number | 1 | Base radius of each dot |
strength | number | 0.35 | Force strength of the effect |
maxDist | number | 120 | Mouse influence radius in pixels |
className | string | — | CSS class for the wrapper div |
style | object | — | Inline styles for the wrapper div |
Use a ref to access imperative methods:
import { useRef } from "react";
import { PushDotGrid } from "react-push-dot-grid";
function App() {
const gridRef = useRef(null);
return (
<>
<PushDotGrid ref={gridRef} type="push" />
<button onClick={() => gridRef.current.reset()}>Reset</button>
</>
);
}
| Method | Description |
|---|---|
reset() | Reinitializes the dot grid |
width and height.push and pull modes.MIT
FAQs
A React canvas component that creates an interactive dot grid with push/pull mouse effects
We found that react-push-dot-grid demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.