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

How to custom star style #46

Open
nguyenhuutinh opened this issue Apr 2, 2018 · 3 comments
Open

How to custom star style #46

nguyenhuutinh opened this issue Apr 2, 2018 · 3 comments

Comments

@nguyenhuutinh
Copy link

Hello
Thanks for this.
I have a question> how can I change the star style?
I want to increase the font size.
Thanks

@szilagyiabo
Copy link

I placed it in a div and added style to that div like:

<div className="rating-stars">
  <StarRatingComponent 
        ...args...
   />
</div>
.rating-stars {
    margin-left: 12px;
    font-size: 12px;
}

I know it is a late response but hope it helped.

Abo

@sumit151199
Copy link

This method not working

I placed it in a div and added style to that div like:

<div className="rating-stars">
  <StarRatingComponent 
        ...args...
   />
</div>
.rating-stars {
    margin-left: 12px;
    font-size: 12px;
}

I know it is a late response but hope it helped.

Abo

this is not working

@BrunoVukasovic
Copy link

You can change font size like this:
<StarRatingComponent className={"Rating"} name="rating" />
In CSS file:
.Rating { font-size: 10px; }
Same as any other react component.

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

4 participants