Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Raty | 2,332 | 2 months ago | 60 | mit | JavaScript | |||||
:star2: Raty - A Star Rating Plugin | ||||||||||
Smileyrating | 1,003 | 3 years ago | 1 | June 18, 2019 | 7 | apache-2.0 | Java | |||
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon. | ||||||||||
React Native Star Rating | 735 | 220 | 36 | 2 years ago | 11 | September 10, 2018 | 48 | JavaScript | ||
A React Native component for generating and displaying interactive star ratings | ||||||||||
Edstarrating | 425 | 71 | 6 years ago | 3 | March 24, 2015 | 18 | Objective-C | |||
Configurable Star Rating control for iOS and OSX | ||||||||||
React Star Rating Component | 322 | 360 | 33 | 3 years ago | 10 | March 04, 2018 | 19 | mit | JavaScript | |
Basic React component for star (or any other icon based) rating elements | ||||||||||
Vue Rate | 213 | 9 | a year ago | 26 | May 16, 2022 | 1 | mit | Vue | ||
Rate component for Vue | ||||||||||
Material Ui Rating | 90 | 40 | 2 | 3 months ago | 21 | August 14, 2019 | 1 | mit | JavaScript | |
Rate something with style. | ||||||||||
Angular Input Stars | 76 | 5 | 1 | 5 years ago | 1 | April 28, 2016 | 7 | HTML | ||
Create rating inputs easily | ||||||||||
Heartrate | 73 | 8 months ago | 1 | mit | C# | |||||
Bluetooth heart rate monitor | ||||||||||
Css Star Rating | 65 | 92 | 5 | 5 months ago | 16 | June 06, 2022 | 9 | mit | SCSS | |
Css Star Rating is a css only star rating lib based on best practice UX/UI methodes. It is written in scss and fully customizable. |
Tiny React.js component for star (or any other icon based) ratings.
npm install react-star-rating-component --save
<StarRatingComponent
name={String} /* name of the radio input, it is required */
value={Number} /* number of selected icon (`0` - none, `1` - first) */
starCount={Number} /* number of icons in rating, default `5` */
onStarClick={Function(nextValue, prevValue, name)} /* on icon click handler */
onStarHover={Function(nextValue, prevValue, name)} /* on icon hover handler */
onStarHoverOut={Function(nextValue, prevValue, name)} /* on icon hover out handler */
renderStarIcon={Function(nextValue, prevValue, name)} /* it should return string or react component */
renderStarIconHalf={Function(nextValue, prevValue, name)} /* it should return string or react component */
starColor={String} /* color of selected icons, default `#ffb400` */
emptyStarColor={String} /* color of non-selected icons, default `#333` */
editing={Boolean} /* is component available for editing, default `true` */
/>
import React from 'react';
import ReactDOM from 'react-dom';
import StarRatingComponent from 'react-star-rating-component';
class App extends React.Component {
constructor() {
super();
this.state = {
rating: 1
};
}
onStarClick(nextValue, prevValue, name) {
this.setState({rating: nextValue});
}
render() {
const { rating } = this.state;
return (
<div>
<h2>Rating from state: {rating}</h2>
<StarRatingComponent
name="rate1"
starCount={10}
value={rating}
onStarClick={this.onStarClick.bind(this)}
/>
</div>
);
}
}
ReactDOM.render(
<App />,
document.getElementById('app')
);
import React from 'react';
import ReactDOM from 'react-dom';
import StarRatingComponent from 'react-star-rating-component';
class App extends React.Component {
render() {
const { rating } = this.state;
return (
<div>
<h2>Rating from state: {rating}</h2>
<StarRatingComponent
name="rate2"
editing={false}
renderStarIcon={() => <span></span>}
starCount={10}
value={8}
/>
</div>
);
}
}
ReactDOM.render(
<App />,
document.getElementById('app')
);
Check more in examples folder.
MIT Licensed