Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing style prop #61

Open
tahv0 opened this issue Aug 1, 2019 · 1 comment
Open

Missing style prop #61

tahv0 opened this issue Aug 1, 2019 · 1 comment

Comments

@tahv0
Copy link

tahv0 commented Aug 1, 2019

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
Copy link

muchtarpr commented Dec 3, 2020

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants