n49 / react-stars

A simple star rating component for your React projects :star:
http://developers.n49.com/react-stars/
218 stars 82 forks source link

Adding dynamic color functionality for different value range #56

Closed dev-sabbir closed 10 months ago

dev-sabbir commented 5 years ago

@RyanMarr I have added two props i.e. dynamic, dynamicOptions for adding dynamic color for different color functionality.

Example use case:

You have a feedback form where the color of stars will change based on the rating you provided like color will be red if the rating is below 3 and color will be green if the rating is above 3.