# react-rating-doped

> a pure and clean react component for your rating function customized by doped.Forked from linmic/react-simple-rating.git

Latest version **1.0.0** (published 2019-06-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-06-11 |
| First published | 2019-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | linmic |
| Maintainers | likable_kahuna |
| Keywords | react, react-component, rating, ui |

## Links

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

## 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.0 (latest) — 2019-06-11
- 0.0.9 — 2019-06-11

## README

# React-Rating
this is a really small and highly-extensible react-componenet made for your rating function

# Usage

```bash
var Rating = require('react-simple-rating');
```
or

```bash
import Rating from 'react-simple-rating';
```

# Examples

#### to check live example

```bash
npm run dev && open ./example/index.html
```

#### display-only
```jsx
<Rating rating={3.43} displayOnly={true} />
```

#### functional
```jsx
<Rating displayOnly={false} onSubmit={this.handleClick} />
```

#### arbitrary maxRating (but don't go too far)
```jsx
<Rating displayOnly={false} maxRating={7} onSubmit={this.handleClick} />
```

however, if you go with too many symbols and lead to a line wrap, since it is based on RTL direction, it may not work as you expected (say 100 symbols)

#### custom unicode symbol
```jsx
<Rating rating={3.43} displayOnly={true} ratingSymbol={'\u2764'} />
```

#### and yes, of course you can use your favorite icons from FontAwesome

```jsx
<Rating rating={4.33} displayOnly={true} ratingSymbol={'\uf091'} />
```

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