
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
react-svg-cursor
Advanced tools
Use any image or SVG as a cursor in your react project.
npm install --save react-svg-cursor
import { CustomCursor } from "react-svg-cursor";
import svg from "./assets/test.svg";
// or
import png from "./assets/test.png";
ReactDOM.render(
<>
<App />
<CustomCursor
component={svg}
isDisabled={false}
width={20}
height={20}
zIndex={420}
transform="translate(-30%, -10%) rotateZ(-22deg)"
/>
</>,
document.getElementById("root")
);
| name | type | default | description |
|---|---|---|---|
| component | any | none | Your asset to be used as cursor |
| isDisabled | boolean | false | Turn on or off your custom cursor |
| width | number | 18 | Width |
| height | string | 18 | Height |
| zIndex | number | 999 | z-index, adjust for your app |
| transform | string | "none" | You can use this to rotate your cursor, works exactly like css rule |
You can add your styles on .rsc-cursor class name
MIT-licensed. See LICENSE.
FAQs
Use any SVG or Image as your custom cursor
The npm package react-svg-cursor receives a total of 26 weekly downloads. As such, react-svg-cursor popularity was classified as not popular.
We found that react-svg-cursor 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.