2.0.4 • Published 4 years ago

react-verdict v2.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm version npm license

Installation

npm i react-verdict

Usage

import Rating from 'react-verdict';

const Example = () => {
  return (
    <div>
      <Rating value={2.4} />
    </div>
  );
};

Documentation

Props

Prop NameDescription
valuenumeric value of the displayed rating
sizenumeric font-size of the rendered "star" characters
numberStarsnumber of "stars" in the display
showRatingOnHoverboolean for showing the value in a hover tooltip (title attribute)
starRenderercustom function to override the default "star" renderer

See examples in Styleguide.

2.0.3

4 years ago

2.0.4

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago