Cursor Package For React
Installation
npm i cursor-react
USE Cursor Package
import React from "react";
import Cursor from "cursor-react";
import image from "./image.png";
function App() {
return (
<div>
<Cursor imageIcon={image} size={40}>
<div
style={{
height: "100px",
backgroundColor: "blue",
}}
>
This is a Test
</div>
</Cursor>
</div>
);
}
Props
props | defaultValue | description |
---|---|---|
imageIcon | null | cursor image icon |
size | 16 | min = 4 & max = 50 |
License
MIT
Author
Minoo Tavakoli