npm

react-cursor-custom

1.2.4 • Public • Published

react-cursor

React custom cursor component

NPM JavaScript Style Guide

Live Example

Example

React Custom Cursor Demo

Installation

npm install --save react-cursor

or

yarn add react-cursor

Usage

import CursorProvider from 'react-cursor-custom' and wrap your main component with it.

import React from 'react'
 
import { CursorProvider } from 'react-cursor-custom'
 
const App = () => {
  return (
    <CursorProvider>
      <YourMainComponent/>
    <CursorProvider/>
  )
}

API

Prop name Description
color [string] color of ring and dot default is black
noRing [boolean] hide the outside ring
ringSize [number] size of the ring
transitionTime [number] transition time in ms

License

MIT © timmilesdw

Package Sidebar

Install

npm i react-cursor-custom

Weekly Downloads

64

Version

1.2.4

License

MIT

Unpacked Size

27.5 kB

Total Files

6

Last publish

Collaborators

  • timmilesdw