# react-eye

> ![react-eye](https://github.com/tictaca/react-eye/blob/6c03ba51ed14f4233223ab7b0d8034fed1e3702b/src/img/title.gif)

Latest version **1.0.5-alpha.1-3** (published 2023-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-eye
pnpm add react-eye
yarn add react-eye
bun add react-eye
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5-alpha.1-3 |
| Published | 2023-06-17 |
| First published | 2023-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=14.16 |
| Dependencies | 6 |
| Unpacked size | 388.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | tictaca |

## Links

- npm: https://www.npmjs.com/package/react-eye
- Repository: https://github.com/tictaca/react-eye
- Homepage: https://react-eye.framer.website
- Issues: https://github.com/tictaca/react-eye/issues
- npm.io page: https://npm.io/package/react-eye

## Dependencies (6)

- [uuid](https://npm.io/package/uuid.md) ^9.0.0
- [react](https://npm.io/package/react.md) ^18.2.0
- [framer](https://npm.io/package/framer.md) ^2.3.0
- [popmotion](https://npm.io/package/popmotion.md) ^11.0.5
- [@types/uuid](https://npm.io/package/@types/uuid.md) ^9.0.0
- [framer-motion](https://npm.io/package/framer-motion.md) ^9.0.3

## Recent versions

- 1.0.5-alpha.1-3 (latest) — 2023-06-17
- 1.0.5-alpha.1-2 — 2023-02-22
- 1.0.5-alpha.1 — 2023-02-22
- 1.0.5 — 2023-02-18
- 1.0.4 — 2023-02-17
- 1.0.3 — 2023-02-17
- 1.0.2 — 2023-02-17
- 1.0.1 — 2023-02-17
- 1.0.0 — 2023-02-08

## README

![react-eye](https://github.com/tictaca/react-eye/blob/6c03ba51ed14f4233223ab7b0d8034fed1e3702b/src/img/title.gif)

# About
Eye Component follows mouse.


# Usage
npm:
```shell
npm i react-eye
```

yarn:
```shell
yarn add react-eye
```
## Getting started with react-eye
Here is an example of a basic app with Eye component:
```js
import * as React from "react";
import Eye from "react-eye";

function App() {
return (
    <>
      <Eye
        white={{
          x: 150,
          y: 150,
        }}
        iris={{
          x: 100,
          y: 100,
          color: "chocolate",
        }}
      />
    </>
  )
}
```

## props
|name|type|description|
|-|-|-|
|white|{ x: number; y: number; }|configuration for white part of eye, x is for vertical, y is for horizontal size|
|iris|{ x: number; y: number; color?: string; }|configuration for iris. x is for vertical, y is for horizontal size, color for iris fill|
|controlerRef|React.MutableRefObject<{ watch: (targetPosition: { x: number; y: number }) => void; }>| ref reception for controler, for now only "watch" will back.that make focus for target position specified|
|throttleInterval|number|specify throttle interval for mouse trace|

**also "style" and "className" are available for styling!**

# Contributing
Thanks so much for your interest!
Any suggestion and pull requests are welcome!! 

# License
[MIT](https://choosealicense.com/licenses/mit/)

---
_Source: https://npm.io/package/react-eye · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
