1.1.1287 • Published 2 years ago

react-cursorify v1.1.1287

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-cursorify

react-cursorify-social-card

Customizable cursor component for any style. 🕹️

Website

Getting Started

Let's apply react-cursorify!

Install react-cursorify

You can install react-cursorify in your React project using the two commands below.

via npm:

npm install react-cursorify

or via yarn:

yarn add react-cursorify

Apply to your react project

To apply react-cursorify, simply wrap your React project with CursorifyProvider. It's easy, right?

import { CursorifyProvider } from 'react-cursorify'

const App = () => {
  return (
    <CursorifyProvider>
      <>{/*....your component */}</>
    </CursorifyProvider>
  )
}

export default App

Applying default settings

If you want to set default options for the cursor, you can apply the default cursor component, opacity, and delay. Typically, changing the cursor settings on a website is not common, so it is better to apply your website settings to the default settings.

Refer to the description of each option below.

  • cursor: pass the React component you want to apply.
  • delay: You can pass a number between 1 and 10.
  • opacity: You can pass a number between 0 and 1.
  • visibleDefaultCursor: You can pass a boolean.
import { CursorifyProvider, EmojiCursor } from 'react-cursorify'

const App = () => {
  return (
    <CursorifyProvider
      cursor={EmojiCursor}
      delay={2}
      opacity={0.7}
      visibleDefaultCursor={false}
    >
      <>{/*....your component */}</>
    </CursorifyProvider>
  )
}

export default App

More info

For more details, please refer to the Docs.

Cursor

react-cursorify manages custom cursor components so that they can be shared and used. Please share your cursor component via PR!

Contributing

Check out the Contributing Guide.

Contributors

Support

react-cursorify is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers.

Sponsors

none.

License

The MIT License.

1.1.1287

2 years ago

1.1.1286

2 years ago

1.1.1284

2 years ago

1.1.1283

2 years ago

1.1.1282

2 years ago

1.1.1281

2 years ago

1.1.128

2 years ago

1.1.127

2 years ago

1.1.126

2 years ago

1.1.125

2 years ago

1.1.124

2 years ago

1.1.123

2 years ago

1.1.122

2 years ago

1.1.121

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.31

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.98

2 years ago

1.0.97

2 years ago

1.0.96

2 years ago

1.0.95

2 years ago

1.0.94

2 years ago

1.0.93

2 years ago

1.0.92

2 years ago

1.0.91

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago