dreyescat / react-rating

A rating react component with custom symbols.

Home Page:http://dreyescat.github.io/react-rating/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add id or cssClass option to rating stars wrapper

abz121 opened this issue · comments

The component is awesome, but I need to style the parent wrapper (that holds individual stars) to things like align center. currently it doesn't have a css id and the props don't get passed through

You are not the first one requesting this kind of flexibility (#68). I think it makes sense to propagate the className to the wrapper element. I will take a look.

Now id, style, and className are propagated to the container element.

Released in version 1.2.0

I'll take care of publishing the new version to npm and updating the docs about this, during the weekend.