# react-animation-rating

> React animation rating

Latest version **1.0.4** (published 2022-11-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-animation-rating
pnpm add react-animation-rating
yarn add react-animation-rating
bun add react-animation-rating
```

## 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.4 |
| Published | 2022-11-06 |
| First published | 2022-11-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | u4aew |
| Keywords | react, rating, animation |

## Links

- npm: https://www.npmjs.com/package/react-animation-rating
- Repository: https://github.com/u4aew/react-animation-rating
- Homepage: https://github.com/u4aew/react-animation-rating#readme
- Issues: https://github.com/u4aew/react-animation-rating/issues
- npm.io page: https://npm.io/package/react-animation-rating

## Dependencies (1)

- [clsx](https://npm.io/package/clsx.md) ^1.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2022-11-06
- 1.0.3 — 2022-11-06
- 1.0.2 — 2022-11-06
- 1.0.1 — 2022-11-06
- 1.0.0 — 2022-11-06

## README

[![npm version](https://badge.fury.io/js/react-animation-rating.svg)](https://badge.fury.io/js/react-animation-rating)

# React-animation-rating
A simple component to display rating as stars

## Installing as a package

```
npm i react-animation-rating
```

## Usage

```js
import React, {useState} from 'react';
import RatingAnimation from "react-animation-rating";
import 'react-animation-rating/dist/style.css';

function App() {
  const [value, setValue] = useState(4);
  return (
    <div className="App">
      <div className="App-header">
        <RatingAnimation value={value} onChange={setValue}/>
      </div>
    </div>
  );
}

export default App;
```
## Demo
[https://u4aew.github.io/react-animation-rating/](https://u4aew.github.io/react-animation-rating/)

![demo](./img/demo.gif)

## Options
| Name              | Type     | Required | Default |
|-------------------|----------|----------|---------|
| sizeStar          | number   | false    | 24      |
| countItem         | number   | false    | 5       |
| value             | number   | true     |         |
| colorStar         | string   | false    | #ffc107 |
| colorInactiveStar | string   | false    | #9e9e9e |
| disabled          | boolean  | false    | false   |
| className         | string   | false    |         |
| onChange          | function | false    |         |

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