react-star-rating-component icon indicating copy to clipboard operation
react-star-rating-component copied to clipboard

Editable (with half-stars) Not Working

Open prabhatmishra33 opened this issue 6 years ago • 1 comments

Hi, while using this npm module for ratings the half star feature is not working ,It's not showing any stars. I just copied the below code :

renderStarIcon={(index, value) => { return ( <span> <i className={index <= value ? 'fas fa-star' : 'far fa-star'} /> </span> ); }} renderStarIconHalf={() => { return ( <span> <span style={{position: 'absolute'}}><i className="far fa-star" /></span> <span><i className="fas fa-star-half" /></span> </span> ); }} />

React Version Installed:16.7.0 npm version : 6.4.1

Thanks, Prabhat

prabhatmishra33 avatar Jan 26 '19 14:01 prabhatmishra33

Have you included fontawesome styles?

xxcheckmatexx avatar Jun 11 '19 10:06 xxcheckmatexx