voronianski / react-star-rating-component

Basic React component for star (or any other icon based) rating elements
http://voronianski.github.io/react-star-rating-component/example
MIT License
380 stars 77 forks source link

Missing style prop #61

Open tahv0 opened 5 years ago

tahv0 commented 5 years ago

Hey

I think it would be nice if custom styles could be passed via props. E.g one could change star size with style={{ fontSize: '50px' }}

Any thoughts?

muchtarpr commented 4 years ago

if you want to increase star size, i use this way

place the star inside div, and you set fontsize style to div, and it worked (for me, atleast)

import StarRatingComponent from 'react-star-rating-component' ...

<div style={{fontSize:'20px'}}>
    <StarRatingComponent 
        starCount={5}
        value={3}
        starColor="#ffcc00"
        emptyStarColor="#b4b4b4"
        editing={false}
    />
</div>