
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.