React Stars

A simple star rating component for your React projects ⭐️
Alternatives To React Stars
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
19 hours ago660otherTypeScript
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
React Native Star Rating735220362 years ago11September 10, 201848JavaScript
A React Native component for generating and displaying interactive star ratings
React Native In App Review514
3 months ago44April 16, 202219mitJavaScript
The Google Play In-App Review API, App store rating API lets you prompt users to submit Play Store or App store ratings and reviews without the inconvenience of leaving your app or game.
React Form Builder513
6 years ago3November 18, 201626mitJavaScript
A complete react form builder that interfaces with a json endpoint to load and save generated forms. The toolbox contains 16 items for gathering data. Everything from star ratings to signature boxes!
React Rating47623455a year ago63March 25, 202017mitJavaScript
A rating react component with custom symbols.
React Star Rating Component322360334 years ago10March 04, 201819mitJavaScript
Basic React component for star (or any other icon based) rating elements
Rn Emoji Feedback209
7 years ago3mitJavaScript
Demo of a Rating Component written in React Native
React Rater1896492 months ago32September 07, 20221bsd-3-clauseJavaScript
⭐️ Interative & customizable star rater
React Rating1751a month ago10December 20, 2022mitTypeScript
:star: Zero-dependency, highly customizable rating component for React.
React Stars149170213 years ago11November 06, 201738JavaScript
A simple star rating component for your React projects :star:
Alternatives To React Stars
Select To Compare

Alternative Project Comparisons

react-stars ⭐️

A simple star rating component for your React projects (now with half stars and custom characters)


Get started quickly

Install react-stars package with NPM:

npm install react-stars --save

Then in your project include the component:

import ReactStars from 'react-stars'
import React from 'react'
import { render } from 'react-dom'

const ratingChanged = (newRating) => {

  color2={'#ffd700'} />,



This a list of props that you can pass down to the component:

Property Description Default value type
className Name of parent class null string
count How many total stars you want 5 number
value Set rating value 0 number
char Which character you want to use as a star string
color1 Color of inactive star (this supports any CSS valid value) gray string
color2 Color of selected or active star #ffd700 string
size Size of stars (in px) 15px string
edit Should you be able to select rating or just see rating (for reusability) true boolean
half Should component use half stars, if not the decimal part will be dropped otherwise normal algebra rools will apply to round to half stars true boolean
onChange(new_rating) Will be invoked any time the rating is changed null function

Help improve the component

Build on your machine:
# Clone the repo
git clone [email protected]:n49/react-stars.git
# Go into project folder
cd react-stars
# Install dependancies
npm install

Build the component:

npm build

Run the examples (dev):

npm run dev-example

Build the examples (production):

npm run build-example

Then in your browser go to:


You will need to have React in your project in order to use the component, I didn't bundle React in the build, because it seemed like a crazy idea.


  • Make better docs
  • Better state management
  • Write tests
Popular Rating Projects
Popular Reactjs Projects
Popular User Interface Components Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.